title: Handle empty string value in JSON
body: <p>I am using a third party API which gives me a JSON response as follows.</p>
  <pre><code>{
     &quot;peopleList&quot;:[
        {
           &quot;name&quot;:&quot;Jack&quot;,
           &quot;creditcard&quot;:&quot;12335435345&quot;
        },
        {
           &quot;name&quot;:&quot;Arya&quot;,
           &quot;creditcard&quot;:&quot;&quot;
        }
     ],
     &quot;responseTime&quot;:0.02,
     &quot;error&quot;:&quot;&quot;
  }
  </code></pre>
  <p>Here the empty string is used to represent <code>No Value</code>, which I think should have been null.<br />
  How do I replace all the values that are empty-string to null using python?</p>
  <p><strong>Edit:</strong><br />
  I am using Django to serve JSON to my iOS app which is in Swift. Although empty string is false in python it is not the case in swift.</p>
  <p>Or even better. How do I remove all the keys which have empty-strings as their value?</p>