groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Rosa <>
Subject Re: RESTClient error when POSTing JSON with embedded GString
Date Wed, 27 Apr 2016 17:31:18 GMT
That’s coming from the defaultBeanProcessing() method in JSONObject:

It seems like JSONObject is tripping up on the GString. My guess is that it doesn’t see
it as a String, and therefore attempts to treat it like a bean. I couldn’t verify this theory
because for some reason json-lib is not resolving for me via @Grab. But, try doing a toString()
on that GString.

> On Apr 27, 2016, at 12:36 PM, Guy Matz <> wrote:
> net.sf.json.JSONObject _fromBean

View raw message