title: How do I parse a JSON string in Golang?
body: <p>Given a URL like the following.</p>
  
  <pre><code>http://127.0.0.1:3001/find?field=hostname&amp;field=App&amp;filters=["hostname":"example.com,"type":"vm"]
  </code></pre>
  
  <p>How do I extract JSON values corresponding to keys for eg: hostname 'example.com' and type 'vm'.</p>
  
  <p>I am trying </p>
  
  <pre><code>filters := r.URL.Query()["filters"]
  </code></pre>
  
  <p>which gives following output:</p>
  
  <pre><code>[["hostname":"example.com,"type":"vm"]]
  </code></pre>