org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '\{name:'Duke'\}' with class 'java.lang.String' to class 'net.sf.json.JSON'

json-lib | *anonymous | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GJson.enhanceClasses() not working

    json-lib | 7 years ago | *anonymous
    org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '\{name:'Duke'\}' with class 'java.lang.String' to class 'net.sf.json.JSON'

    Root Cause Analysis

    1. org.codehaus.groovy.runtime.typehandling.GroovyCastException

      Cannot cast object '\{name:'Duke'\}' with class 'java.lang.String' to class 'net.sf.json.JSON'

      at x.run()
    2. Unknown
      x.run
      1. x.run(x.groovy:15)
      1 frame