title: How do I convert a querystring to a json string in dotnet core?
body: <p>how can I convert a query string to a JSON string of keys and values? For example, I want to convert</p>
  <pre><code>&quot;ID=123&amp;FNAME=test&amp;LNAME=xyz&quot;
  </code></pre>
  <p>to</p>
  <pre><code>{&quot;ID&quot;:&quot;123&quot;,&quot;FNAME&quot;:&quot;test&quot;,&quot;LNAME&quot;:&quot;xys&quot;}
  </code></pre>