title: Issue posting a PHP array to an API requiring an array of JSON objects
body: <p>Am working on some PHP inputs which I store in an array, then I post to an API requiring an array of JSON objects. I keep getting errors when posting the data below..</p>
  
  <p>Please assist?</p>
  
  <p><strong>Array am trying to post</strong></p>
  
  <pre><code>$children = ["child_name" =&gt; $cName , "child_dob" =&gt; $cDob]; 
  dd($children);
  </code></pre>
  
  <p><strong>Output in browser after die dump</strong></p>
  
  <pre><code>array:2 [
    "child_name" =&gt; array:5 [
      0 =&gt; "Child 1"
      1 =&gt; "mnmnmn"
      2 =&gt; "mnmnmnm"
      3 =&gt; "nbnbnb"
      4 =&gt; "nbjhjgkgjhkg"
    ]
    "child_dob" =&gt; array:5 [
      0 =&gt; "2018-11-01"
      1 =&gt; "2018-11-02"
      2 =&gt; "2018-11-09"
      3 =&gt; "2018-11-14"
      4 =&gt; "2018-11-08"
    ]
  ]
  </code></pre>
  
  <p><strong>Sample data from API I need to POST to</strong></p>
  
  <pre><code>{
  "children":[
      {"child_name":"abc","child_dob":"23-05-2015"}
    ]
  }
  </code></pre>