title: Remove array bracket before pushing to an array
body: <pre class="lang-json prettyprint-override"><code>[
    [
      {
        &quot;id&quot;: &quot;5d52eaa88c31223a0ea27df7&quot;,
        catalogues: [Array]
      }
    ],
    [
      {
        &quot;id&quot;: &quot;5d52f17a8c31223a0ea27e38&quot;,
        catalogues: [Array]
      }
    ],
    [
      {
        &quot;id&quot;: &quot;5d52f17a8c31223a0ea27e32&quot;,
        catalogues: [Array]
      }
    ],
    [
      {
        &quot;id&quot;: &quot;5d52f17a8c31223a0ea27e31&quot;,
        catalogues: [Array]
      }
    ]
  ]
  </code></pre>
  <p>Make a single array before pushing it to another array containing a JSON object. Can I make it as a json object by removing square bracket before pushing to a array.</p>