title: How to get data from a named json with golang+jason?
body: <p>I've this json:</p>
  
  <pre><code>info = {"key1": 1 , "key2": 1 , "key3": 3}
  </code></pre>
  
  <p>I would like to get the value from <code>key1</code> with <a href="https://github.com/antonholmquist/jason" rel="nofollow noreferrer">jason</a> and <code>NewObjectFromReader</code>.</p>
  
  <p>I'm using this code:</p>
  
  <pre><code>statusBody, err := jason.NewObjectFromReader(res.Body)
  if err != nil {
      log.Fatal(err)
  }
  </code></pre>
  
  <p><code>res.Body</code> is a <code>io.Reader</code>, so that part is fine (I guess). <code>go run</code> shows this problem:</p>
  
  <pre><code>2018/12/19 18:02:40 invalid character 'i' looking for beginning of value
  </code></pre>
  
  <p>I think the problem is that the json starts with <code>info=</code> instead of <code>{</code>. Any idea how to parse this json?.</p>