title: How to transform a JsonArray to JsonObject?
body: <p>I have a json array like this :</p>
  
  <pre><code>[{"myid":"123","post":"harry"},{"myid":"456":"ramon"}]
  </code></pre>
  
  <p>I would like to make a JSONObject out of it. I'm used to JSONArray like this:</p>
  
  <pre><code>`{"myid":"123","post":"harry"}` 
  </code></pre>
  
  <p>or </p>
  
  <pre><code>{"myid":"123","post":[str1, str2]}
  </code></pre>
  
  <p>thanks for your help.</p>