What is the best way to convert a JSON code as this:
{ \"data\" : { \"field1\" : \"value1\", \"field2\" : \"value2\" } }
The JsonTools library is very complete. It can be found at Github.