title: How to format JSON correctly with arrays
body: <p>I'm trying to send a JSON payload in my POST request but I'm not sure on how to format it correctly to use arrays. This below is what the <strong>correct JSON</strong> itself looks like:</p>
  <pre><code>{
      &quot;animal&quot;: &quot;dog&quot;,
      &quot;contents&quot;: [{
          &quot;name&quot;: &quot;daisy&quot;,
          &quot;VAL&quot;: &quot;234.92133&quot;,
          &quot;age&quot;: 3
      }]
  }
  </code></pre>
  <p>I have this so far:</p>
  <pre><code>        group := map[string]interface{}{
              &quot;animal&quot;: &quot;dog&quot;,
              &quot;contents&quot;: map[string]interface{}{
                  &quot;name&quot;: &quot;daisy&quot;,
                  &quot;VAL&quot;:  &quot;234.92133&quot;,
                  &quot;age&quot;:  3,
              },
          }
  </code></pre>
  <p>But I can't figure out how to do array of contents (the square brackets), only the curly brackets from &quot;contents&quot;.</p>