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
GSON is a good option to convert java object to json object and vise versa.
It is a tool provided by google.
for converting json to java object use: fromJson(jsonObject,javaclassname.class)
for converting java object to json object use: toJson(javaObject)
and rest will be done automatically
For more information and for download