title: How to access key and value from json in golang?
body: <p>I have a struct</p>
  
  <pre><code>type Order struct {
      ID string `json:"id"`
      CustomerMobile string `json:"customerMobile"`
      CustomerName string `json:"customerName"`
     }
  </code></pre>
  
  <p>and the json data:</p>
  
  <pre><code>[{"Key":"S001", "Record":{"id":"SOO1","customerMobile":"12344566","customerName":"John"}}] 
  </code></pre>
  
  <p>How can i access customerMobile key from the above json object?</p>
  
  <p>I have done some research in Google and i found the below solution, but its not working when i apply to my above requirement. Its working with simple json format.</p>
  
  <pre><code>jsonByteArray := []byte(jsondata)
   json.Unmarshal(jsonByteArray, &amp;order)
  </code></pre>