title: How do I Unmarshal JSON?
body: <p>I am trying to unmarshal JSON into a struct. However, the struct has a field with a tag. Using reflection, and I try to see if the tag has the string &quot;json&quot; in it. If it does, then the json to unmarshal should simply be unmarshaled into the field as a string.</p>
  <p>Example:</p>
  <pre><code>const data = `{&quot;I&quot;:3, &quot;S&quot;:{&quot;phone&quot;: {&quot;sales&quot;: &quot;2223334444&quot;}}}`
  type A struct {
      I int64
      S string `sql:&quot;type:json&quot;`
  }
  </code></pre>
  <p>Problem is simple - unmarshal &quot;S&quot; in the json as a string into the struct A.</p>
  <p>This is how far I have come. But I am stuck here.</p>
  <p><a href="http://play.golang.org/p/YzrhjuXxGN" rel="nofollow noreferrer">http://play.golang.org/p/YzrhjuXxGN</a></p>