title: How to get map value using json marshal
body: <p>I need to convert json string to map. Here is my go program.</p>
  
  <pre><code>package main
  
  import (
      "encoding/json"
      "fmt"
  )
  
  func main() {
      str := `{
         "Bangalore_City": "35_Temperature",
         "NewYork_City": "31_Temperature",
         "Copenhagen_City": "29_Temperature",
         "hobbies" : {
             "name" : "username"
         }
      }`
      var m map[string]interface{}
      json.Unmarshal([]byte(str), &amp;m)
  
      fmt.Println(m["hobbies"]["name"])
  }
  </code></pre>
  
  <p>If I use this code I am getting the below error. </p>
  
  <pre><code>get.go:26:26: invalid operation: m["hobbies"]["name"] (type interface {} does not support indexing)
  </code></pre>
  
  <p>Please anyone help to fix this issue. Thanks in advance</p>