title: Iterating through JSONObject
body: <p>I parse the response from a web service into a <code>JSONObject</code>, which when logged, looks as follows:</p>
  
  <pre><code>{"Preferences":"{Pref1=Apple, Pref2=Pear}"}
  </code></pre>
  
  <p>I understand how to ask for the <strong>Preferences</strong> tag e.g. <code>jsonObject.get("Preferences")</code>. However, I do not understand what object I am getting back nor how to iterate over it. How can I iterate over the object returned by <code>jsonObject.get("Preferences")</code>?</p>