title: Converting x-www-form-urlencoded to json
body: <p>In my app I have controller which perform several operation on request received as JSON, but sometimes I receive request as x-www-form-urlencoded.
  I would like to convert it to JSON at begining of controller action. <br><br>
  For example I would like to convert:</p>
  
  <pre><code>%7B%0D%0A++%22action%22%3A+%22new_pet%22%2C%0D%0A++%22content%22%3A+%7B%0D%0A++++%220%22%3A+%7B%0D%0A++++++%22name%22%3A+%22Amigo%22%2C%0D%0A++++++%22sex%22%3A+%22male%22%2C%0D%0A++++++%22owner%22%3A+%227449903%22%2C%0D%0A++++++%22type%22%3A+%22dog%22%0D%0A++++%7D%0D%0A++%7D%2C%0D%0A++%22controller%22%3A+%22animal%22%0D%0A%7D
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>{
    "action": "new_pet",
    "content": {
      "0": {
        "name": "Amigo",
        "sex": "male",
        "owner": "7449903",
        "type": "dog"
      }
    },
    "controller": "animal"
  }
  </code></pre>