title: How do I send a 2D array in a JSON structure?
body: <p>I want to send 2D array in a JSON structure.</p>
  <p>The overall structure I want is</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;PED&quot;: {
          &quot;fun&quot;: &quot;enviarPedido&quot;,
          &quot;txtUser&quot;:&quot;123&quot;,
          &quot;md5Passwd&quot;: &quot;123&quot;,                          
          &quot;arrArticulos&quot;: [
              [50,10,5,50],
              [51,9,6.5,58.5],
              [52,8,7,56],
              [53,7,8.5,59.5]
          ]
      }
  }
  </code></pre>
  <p>I want the 2D array generated from the cursor data and put into this JSON Structure</p>
  <pre class="lang-json prettyprint-override"><code>    &quot;arrArticulos&quot;: [
          [50,10,5,50],
          [51,9,6.5,58.5],
          [52,8,7,56],
          [53,7,8.5,59.5]
      ]
  </code></pre>
  <p>What is the solution?</p>