title: Golang wraps a JSON with brackets
body: <p>I'm totally new to Golang.</p>
  
  <p>I can not figure out how to prevent it to wrap JSON in the <code>{...}</code>.</p>
  
  <p>So example:</p>
  
  <pre><code>package main
  
  import (
      "net/http"
      "bytes"
      "fmt"
  )
  
  func main() {
      request, _ := http.NewRequest("POST", "http://example.com", bytes.NewBufferString(`["foobar":42]`))
      fmt.Println(request)
  }
  </code></pre>
  
  <p>This example will output:</p>
  
  <pre><code>&amp;{POST http://example.com HTTP/1.1 1 1 map[] {["foobar":42]} 13 [] false example.com map[] map[] &lt;nil&gt; map[]   &lt;nil&gt; &lt;nil&gt;}
  </code></pre>
  
  <p>As you can see our array (which is BTW valid JSON) is now wrapped into <code>{</code> and <code>}</code>. I ran out of ideas how to fix that.</p>
  
  <p>Thanks!</p>