What is the best way to convert a JSON code as this:
{ \"data\" : { \"field1\" : \"value1\", \"field2\" : \"value2\" } }
java.lang.reflect.Type mapType = new TypeToken>(){}.getType(); Gson gson = new Gson(); Map categoryicons = gson.fromJson(json, mapType );