title: How to convert x-www-form-urlencoded to json with Python (Django)
body: <p>From api i recive x-www-form-urlencoded data.</p>
  <pre><code>data = 'leads%5Bstatus%5D%5B0%5D%5Bid%5D=29078079'
  </code></pre>
  <p>when i try to convert it with <code>urllib.parse.parse_qs</code> or <code>urllib.parse.unquote</code>
  i got a dict like</p>
  <pre><code>{
      &quot;leads[status][0][id]&quot;: [
          &quot;29078079&quot;
      ]
  }
  </code></pre>
  <p>how can i convert it to normal json or dict ?
  like this</p>
  <pre><code>{
      &quot;leads&quot;: [
         &quot;id&quot;: &quot;29078079&quot;
      ]
  }
  </code></pre>