title: Not able to fetch the json data in laravel controller
body: <p>I want to fetch the data from children field or get count of children.</p>
  <p>I am fetching like this:
  $temp = json_decode($request-&gt;get('tempData');</p>
  <p>Here is my json payload:</p>
  <pre><code>tempData:[{
        &quot;id&quot;:&quot;c625&quot;,
        &quot;name&quot;:&quot;Chapter 1&quot;,
        &quot;children&quot;:[
           {
              &quot;id&quot;:3,
              &quot;type&quot;:&quot;study material&quot;,
              &quot;content&quot;:&quot;Demo Study Material Title 2&quot;
           },
           {
              &quot;id&quot;:4,
              &quot;type&quot;:&quot;study material&quot;,
              &quot;content&quot;:&quot;Demo Study Material Title 3&quot;
           },
           {
              &quot;id&quot;:5,
              &quot;type&quot;:&quot;study material&quot;,
              &quot;content&quot;:&quot;Demo Study Material Title 4&quot;
           }
        ],
        &quot;type&quot;:&quot;chapter&quot;
     }
  ]
  </code></pre>