title: How can I create a json payload for a POST request?
body: <pre><code>request, err := http.NewRequest(&quot;POST&quot;, url,bytes.NewBuffer(**myJsonPayload**))
  </code></pre>
  <p>I am trying to make post request with dynamic '<strong>myJsonPayload</strong>', which will be changing for different request.</p>