title: Golang unmarshal json list
body: <p>I've been struggling to parse a basic array response.</p>
  
  <p>My input JSON, has a list of consistent types of structures. </p>
  
  <pre><code>[
  {
    "amount":"6.40000000",
    "date":"1439165701",
    "price":"350.26",
    "tid":104159
  },
  {
    "amount":"0.10025000",
    "date":"1439162764",
    "price":"351.03",
    "tid":104150
  }
  ]
  </code></pre>
  
  <p>My struct has a nested array struct. </p>
  
  <pre><code>type TransactionResponse struct {
      Transaction []Transaction
  }
  type Transaction struct {
      Amount string `json:"amount"`
      Date   string `json:"date"`
      Price  string `json:"price"`
      tid    uint   `json:"tid"`
  }
  </code></pre>
  
  <p>Function to parse the json:</p>
  
  <pre><code>func main() {
      var transactions TransactionResponse
  
      body, err := http.Get(url)
      err = json.Unmarshal(body, &amp;transactions)
  }
  </code></pre>
  
  <p>Where am I going wrong? </p>