title: How to properly format a json encoded array?
body: <p>I am trying to create a json encoded array that results like this:</p>
  
  <pre><code>{
      "properties": [
          {
              "property": "email",
              "value": "testapi@xxxxx.com"
          }
      ]
  }
  </code></pre>
  
  <p>This is my code: </p>
  
  <pre><code>$data = array("properties"=&gt;array("property"=&gt;"status", "value"=&gt; "Pending Approval"));   
  $data_string = json_encode($data, true); 
  
  echo "&lt;pre&gt;";
  print_r($data_string);
  echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>Which then gives me the results of:</p>
  
  <pre><code>{
      "properties":{
          "property":"status",
          "value":"Pending Approval"
      }
  }
  </code></pre>
  
  <p>But yet the API then responds back after a curl method that states:</p>
  
  <pre><code>Json node is missing child property
  </code></pre>
  
  <p>Why is the child property missing? It's been defined - what am I missing on this?</p>