Is there a way in Java/J2ME to convert a string, such as:
{name:\"MyNode\", width:200, height:100}
to an internal Object representation of
Use google GSON library for this
public static T getObject(final String jsonString, final Class objectClass) { Gson gson = new Gson(); return gson.fromJson(jsonString, objectClass); }
http://iandjava.blogspot.in/2014/01/java-object-to-json-and-json-to-java.html