title: Dealing with json null in python
body: <p>I am trying to get some data from a trading API in the web. The data are returned in a JSON format as shown below and my program is written in python:</p>
  <pre><code>{ &quot;result&quot;: [ {
          &quot;name&quot;: &quot;ALGOBEAR/USD&quot;,
          &quot;enabled&quot;: true,
          &quot;postOnly&quot;: false,
          &quot;priceIncrement&quot;: 1e-08,
          &quot;sizeIncrement&quot;: 1000000000000.0,
          &quot;minProvideSize&quot;: 1000000000000.0,
          &quot;last&quot;: 1e-08,
          &quot;bid&quot;: null,
          &quot;ask&quot;: null,
          &quot;price&quot;: null,
          &quot;type&quot;: &quot;spot&quot;,
          &quot;futureType&quot;: null,
          &quot;baseCurrency&quot;: &quot;ALGOBEAR&quot;,
          &quot;isEtfMarket&quot;: true,
          &quot;quoteCurrency&quot;: &quot;USD&quot;,
          &quot;underlying&quot;: null,
          &quot;restricted&quot;: false,
          &quot;highLeverageFeeExempt&quot;: true,
          &quot;largeOrderThreshold&quot;: 350.0,
          &quot;change1h&quot;: 0.0,
          &quot;change24h&quot;: 0.0,
          &quot;changeBod&quot;: 0.0,
          &quot;quoteVolume24h&quot;: 0.0,
          &quot;volumeUsd24h&quot;: 0.0,
          &quot;priceHigh24h&quot;: 0.0,
          &quot;priceLow24h&quot;: 0.0
      }]}
  </code></pre>
  <p>In this list there are over 500 of similar dictionaries as the above. The problem is that  the <code>null</code> values that are returned e.g. <code>&quot;price&quot;: null</code> cannot be compared with the float values of prices(if they are equal, bigger or smaller) of other dictionaries e.g <code>&quot;price&quot;: 0.00019845</code> and the program returns an error.</p>
  <p>I would like to ask if there is a way to deal with these <code>null</code> values so that the python programme can identify them. For example if there is a way to transform them into <code>None</code> so that python can deal with them or delete the dictionaries in the list above that contain <code>null</code> values from the beginning using maybe a <code>json</code> method.</p>
  <p>Thanks!</p>