title: What Are Some Options To Convert Url-Encoded Form Data to JSON in .Net
body: <p>I have a web request that is sending the server data that is in the format <code>application/x-www-form-urlencoded</code>.  I would like to convert it to <code>application/json</code>.</p>
  
  <p><strong>Example:</strong></p>
  
  <p>URL-encoded form data:</p>
  
  <pre><code>Property1=A&amp;Property2=B&amp;Property3%5B0%5D%5BSubProperty1%5D=a&amp;Property3%5B0%5D%5BSubProperty2%5D=b&amp;Property3%5B1%5D%5BSubProperty1%5D=c&amp;Property3%5B1%5D%5BSubProperty2%5D=d
  </code></pre>
  
  <p>Pretty version:</p>
  
  <pre><code>Property1=A
  Property2=B
  Property3[0][SubProperty1]=a
  Property3[0][SubProperty2]=b
  Property3[1][SubProperty1]=c
  Property3[1][SubProperty2]=d
  </code></pre>
  
  <p>The above data needs to be converted to the following JSON data:</p>
  
  <pre><code>{
      Property1: "A",
      Property2: "B",
      Property3: [
          { SubProperty1: "a", SubProperty2: "b" },
          { SubProperty1: "c", SubProperty2: "d" }]
  }
  </code></pre>
  
  <p><strong>Question:</strong></p>
  
  <p>Are there any free tools that are capable of doing this?  I have not been able to find any myself and if they exist, I'd rather consume them than writing one myself, but if it comes to that, I will.</p>
  
  <p>A C#/.Net solution is preferred.</p>