title: Decode JSON with mochijson2 in Erlang
body: <p>I have a var that has some JSON data:</p>
  
  <pre><code>A = &lt;&lt;"{\"job\": {\"id\": \"1\"}}"&gt;&gt;. 
  </code></pre>
  
  <p>Using mochijson2, I decode the data:</p>
  
  <pre><code> Struct = mochijson2:decode(A). 
  </code></pre>
  
  <p>And now I have this:</p>
  
  <pre><code>{struct,[{&lt;&lt;"job"&gt;&gt;,{struct,[{&lt;&lt;"id"&gt;&gt;,&lt;&lt;"1"&gt;&gt;}]}}]}
  </code></pre>
  
  <p>I am trying to read (for example), "job" or "id".</p>
  
  <p>I tried using struct.get_value but it doesn't seem to work.</p>
  
  <p>Any ideas?</p>