title: Remove Intial Nesting in JSON array with PHP
body: <p>I have this JSON array starting with the nesting string &quot;ELEVEURS&quot; and I want to have it removed and should get the output as below. Could someone solve this please!</p>
  <p><strong>INPUT</strong></p>
  <pre><code> $json='{ &quot;ELEVEURS&quot; : 
         [{
          &quot;CHEPTEL&quot;:&quot;12001116&quot;,
          &quot;NOM&quot;:&quot;La Ferme de Jean-Marc et Aurélien &quot;,
          &quot;CODE_POSTAL&quot;:&quot;12630                         &quot;,
          &quot;VILLE&quot;:&quot;AGEN D AVEYRON&quot;,
          &quot;LATITUDE&quot;:&quot;44.343518&quot;,
          &quot;LONGITUDE&quot;:&quot;2.716004&quot;,
          &quot;DESCRIPTIF_FERME&quot;:&quot;&quot;,
          &quot;DEMARCHE&quot; : [
          {
          &quot;DEMA_CODE&quot;:&quot;08-93&quot;,
          &quot;ANNEE_ADHESION&quot;:&quot;2016&quot;,
          &quot;RACE_MERES&quot;:&quot;Limousine&quot;,
          &quot;DESCRIPTIF_ATELIER&quot;:&quot;&quot;
          }
          ]
          },
          {
          &quot;CHEPTEL&quot;:&quot;12004022&quot;,
          &quot;NOM&quot;:&quot;La Ferme du Broussier &quot;,
          &quot;CODE_POSTAL&quot;:&quot;12300                         &quot;,
          &quot;VILLE&quot;:&quot;ALMONT LES JUNIES&quot;,
          &quot;LATITUDE&quot;:&quot;44.592071&quot;,
          &quot;LONGITUDE&quot;:&quot;2.328516&quot;,
          &quot;DESCRIPTIF_FERME&quot;:&quot;&quot;,
          &quot;DEMARCHE&quot; : [
          {
          &quot;DEMA_CODE&quot;:&quot;08-93&quot;,
          &quot;ANNEE_ADHESION&quot;:&quot;2000&quot;,
          &quot;RACE_MERES&quot;:&quot;Limousine&quot;,
          &quot;DESCRIPTIF_ATELIER&quot;:&quot;&quot;
          }
          ]
          }'
  </code></pre>
  <p><strong>OUTPUT</strong></p>
  <pre><code>$json='  [{
          &quot;CHEPTEL&quot;:&quot;12001116&quot;,
          &quot;NOM&quot;:&quot;La Ferme de Jean-Marc et Aurélien &quot;,
          &quot;CODE_POSTAL&quot;:&quot;12630                         &quot;,
          &quot;VILLE&quot;:&quot;AGEN D AVEYRON&quot;,
          &quot;LATITUDE&quot;:&quot;44.343518&quot;,
          &quot;LONGITUDE&quot;:&quot;2.716004&quot;,
          &quot;DESCRIPTIF_FERME&quot;:&quot;&quot;,
          &quot;DEMARCHE&quot; : [
          {
          &quot;DEMA_CODE&quot;:&quot;08-93&quot;,
          &quot;ANNEE_ADHESION&quot;:&quot;2016&quot;,
          &quot;RACE_MERES&quot;:&quot;Limousine&quot;,
          &quot;DESCRIPTIF_ATELIER&quot;:&quot;&quot;
          }
          ]
          },
          {
          &quot;CHEPTEL&quot;:&quot;12004022&quot;,
          &quot;NOM&quot;:&quot;La Ferme du Broussier &quot;,
          &quot;CODE_POSTAL&quot;:&quot;12300                         &quot;,
          &quot;VILLE&quot;:&quot;ALMONT LES JUNIES&quot;,
          &quot;LATITUDE&quot;:&quot;44.592071&quot;,
          &quot;LONGITUDE&quot;:&quot;2.328516&quot;,
          &quot;DESCRIPTIF_FERME&quot;:&quot;&quot;,
          &quot;DEMARCHE&quot; : [
          {
          &quot;DEMA_CODE&quot;:&quot;08-93&quot;,
          &quot;ANNEE_ADHESION&quot;:&quot;2000&quot;,
          &quot;RACE_MERES&quot;:&quot;Limousine&quot;,
          &quot;DESCRIPTIF_ATELIER&quot;:&quot;&quot;
          }
          ]'
  </code></pre>
  <p>I have this INPUT of JSON array starting with the nesting string &quot;ELEVEURS&quot; and I want to have it removed and should get the output as above. Could someone solve this please!</p>