title: How to retrieve JSON data from post request using python cgi
body: <p>I have built a python server-side script which is required to retrieve a small JSON from the body of a post request.</p>
  
  <p>The request body is of the form - <code>{name : value}</code> only.</p>
  
  <p>I have tried using <code>(cgi.FieldStorage()).getvalue(...)</code> but to no luck. Can you please let me know how to extract such a JSON from the post request sent to it.</p>