title: convert json encoded string into array
body: <p>i make an API call, and receive a JSON string response, which looks like </p>
  
  <pre><code>{content = 
  {key_1 = {"field_1" = "value_1"; "field_2" = "value_2"}, 
  key_2 = {"field_1" = "value_3"; "field_2" = "value_4"}
  }
  </code></pre>
  
  <p>I would like to transform it into an array (this is actually a list of companies), with whom i could use something similar to a "foreach" in PHP, to fetch the index and some particular fields.</p>
  
  <p>Do you have an idea how to cast it to an array ?</p>
  
  <p>(for example, in pho i would use $array = (array) $object; )</p>
  
  <p>Thank you for your help !</p>
  
  <p>Frederic</p>