title: Parse string to object to query from mongo db
body: <p>I am trying to use a query parameter with mongo db, i sent the string as</p>
  
  <p><strong><code>"{"location.city":"Florida"},{"category":"sports"}"</code></strong></p>
  
  <p>i need to pass this as a condition, so i am trying to remove the "" with the following code.</p>
  
  <pre><code>let filter = JSON.parse(myString);
  </code></pre>
  
  <p>but it throws an error <strong>Unexpected token , in JSON at position 27'</strong></p>
  
  <p>Expected format:</p>
  
  <pre><code>{"location.city":"Florida"},{"category":"sports"}
  </code></pre>