Attempting to unmarshal a json byte array in golang 1.12 : <p>I am getting a json byte array and simply attempting to unmarshal it into a struct for later use.</p>

<pre><code>type Event struct {
    category  string `json:"category"`
    service   string `json:"service"`
    timestamp string `json:"timestamp"`
    value     string `json:"value"`
}
ba := []byte(`
    {
      "category": "category1",
      "service" : "service1",
      "timestamp": "06-21-2019T10:08:00",
      "value": "5"
    }`)
var event Event
err := json.Unmarshal(ba, &amp;event)
if err != nil {
    log.Panicln(err)
}
log.Printf("%+v", event)
</code></pre>

<p>I was expecting:</p>

<p>2019/06/21 12:21:13 {category:category1 service:service1 timestamp:06-21-2019T10:08:00 value:5 }</p>

<p>but instead I'm getting:</p>

<p>2019/06/21 12:21:13 {category: service: timestamp: value:}</p>
