title: invalid operation: type interface {} does not support indexing
body: <p>I'm new to the golang and I have problem while reading the nested JSON response.  </p>
  
  <pre><code>var d interface{}
  json.NewDecoder(response.Body).Decode(&amp;d)
  test :=d["data"].(map[string]interface{})["type"]
  </code></pre>
  
  <p><code>response.Body</code> looks like this</p>
  
  <pre><code>{
      "links": {
        "self": "/domains/test.one"
      },
      "data": {
          "type": "domains",
          "id": "test.one",
          "attributes": {
              "product": " Website",
              "package": "Professional",
              "created_at": "2016-08-19T11:37:01Z"
          }
      }
  }
  </code></pre>
  
  <p>The Error I'm getting is this:</p>
  
  <pre><code>invalid operation: d["data"] (type interface {} does not support indexing)
  </code></pre>