I found many things about converting Groovy to JSON, but oddly enough, not the other way.
What is the (best) JSON to Groovy parser around there ?
I use JSON-lib in HTTPBuilder, but I use the JSONSlurper class to parse a string to a JSON instance:
JSON jsonMapObject = new JsonSlurper().parse( "{integer:1, bool: true}" );
To go from Object to JSON, I do this:
//from a map:
new JSONObject().putAll( [one:'1', two:'two']).toString()
//from an object:
JSONObject.fromObject( somePOGO ).toString()