title: Convert a JSON string to object in J2ME?
body: <p>I've asked this before for<a href="https://stackoverflow.com/questions/1395551/convert-a-string-to-object-in-java"> Java</a>, but this applies specifically to J2ME. </p>
  
  <p>Is there a way in J2ME to convert a string, such as:</p>
  
  <pre><code>{"name":"MyNode", "width":200, "height":100}
  </code></pre>
  
  <p>to an internal <em>Object</em> representation of the same, in one line of code? </p>
  
  <hr>
  
  <p>The problem with such JSON libraries, is that they generate <em>JSONObjects</em> from strings, not plain <em>Objects</em>. My function requires an <em>Object</em>, so can I stuff down a <em>JSONObject</em> into it??</p>
  
  <ul>
  <li>Internal JSON classes such as <a href="http://www.j2ee.me/developer/technicalArticles/javame/json-me/" rel="nofollow noreferrer">JSONObject</a></li>
  <li><a href="http://code.google.com/p/json-simple/" rel="nofollow noreferrer">JSON-simple</a></li>
  </ul>