title: How to convert POST form data to JSON object
body: <p>if there any default functions that can convert a post form data string into json object ?</p>
  
  <p>Here is an example </p>
  
  <pre><code>sendNotification=true&amp;type=extended&amp;additionalNotes=&amp;returnToMainPage=true
  </code></pre>
  
  <p>As you can this is the format of POST form data. I need to convert it into JSON object</p>
  
  <pre><code>{
      "sendNotification": "true",
      "type": "extended",
      "additionalNotes": "",
      "returnToMainPage": "true"
  }
  </code></pre>
  
  <p>Also it should handle arrays like this </p>
  
  <pre><code>blog.blogposts[1].comments  1
  blog.blogposts[1].likes 12
  </code></pre>
  
  <p>I wonder how can I do this using existing tools and libraries. I know that I can write my own converter, but I guess there should a default one. </p>
  
  <p>Thanks</p>
  
  <p><strong>IMPORTANT</strong></p>
  
  <p>I don't have a form, I need just convert the form data string.</p>