title: How to convert the following json string to java object?
body: <p>I want to convert the following JSON string to a java object:</p>
  <pre><code>String jsonString = &quot;{
    &quot;libraryname&quot;: &quot;My Library&quot;,
    &quot;mymusic&quot;: [
      {
        &quot;Artist Name&quot;: &quot;Aaron&quot;,
        &quot;Song Name&quot;: &quot;Beautiful&quot;
      },
      {
        &quot;Artist Name&quot;: &quot;Britney&quot;,
        &quot;Song Name&quot;: &quot;Oops I did It Again&quot;
      },
      {
        &quot;Artist Name&quot;: &quot;Britney&quot;,
        &quot;Song Name&quot;: &quot;Stronger&quot;
      }
    ]
  }&quot;
  </code></pre>
  <p>My goal is to access it easily something like:</p>
  <pre><code>(e.g. MyJsonObject myobj = new MyJsonObject(jsonString)
  myobj.mymusic[0].id would give me the ID, myobj.libraryname gives me &quot;My Library&quot;).
  </code></pre>
  <p>I've heard of Jackson, but I am unsure how to use it to fit the json string I have since its not just key value pairs due to the &quot;mymusic&quot; list involved. How can I accomplish this with Jackson or is there some easier way I can accomplish this if Jackson is not the best for this?</p>