I've asked this before for Java, but this applies specifically to J2ME.
Is there a way in J2ME to convert a string, such as:
{"name":"MyNode", "width":200, "height":100}
to an internal Object representation of the same, in one line of code?
The problem with such JSON libraries, is that they generate JSONObjects from strings, not plain Objects. My function requires an Object, so can I stuff down a JSONObject into it??
- Internal JSON classes such as JSONObject
- JSON-simple