title: Unmarshal nested JSON structure
body: <p><a href="http://play.golang.org/p/f6ilWnWTjm" rel="noreferrer">http://play.golang.org/p/f6ilWnWTjm</a></p>
  
  <p>I am trying to decode the following string but only getting null values.</p>
  
  <p>How do I decode nested JSON structure in Go?</p>
  
  <p>I want to convert the following to map data structure.</p>
  
  <pre><code>package main
  
  import (
    "encoding/json"
    "fmt"
  )
  
  func main() {
    jStr := `
  {
      "AAA": {
          "assdfdff": ["asdf"],
          "fdsfa": ["1231", "123"]
      }
  }
  `
    type Container struct {
      Key string `json:"AAA"`
    }
    var cont Container
  
    json.Unmarshal([]byte(jStr), &amp;cont)
    fmt.Println(cont)
  }
  </code></pre>