title: ODATA, JSON and Python
body: <p>I am stuck on this problem I would like to request this URL, which is in a <code>odata</code> format</p>
  <pre><code>&quot;http://services.odata.org/V3/OData/OData.svc/Products?$format=json&quot;
  </code></pre>
  <p>and that comes from this <a href="https://blogs.msdn.microsoft.com/leohu/2013/10/04/odata-and-json-payload-examples/" rel="nofollow noreferrer">link</a>. I tried with the following code but it doesn't work</p>
  <pre class="lang-py prettyprint-override"><code>from odata import ODataService
  
  url_test = &quot;http://services.odata.org/V3/OData/OData.svc/Products?
      $format=json&quot;
  
  service = ODataService(url, reflect_entities=False)
  
  service.entities['ID']
  </code></pre>
  <p>My end goal is to retrieve all the different ID with their Price.</p>
  <p>Thanks</p>
  <p>I have this error message</p>
  <pre class="lang-py prettyprint-override"><code>---------------------------------------------------------------------------
  KeyError                                  Traceback (most recent call last)
  &lt;ipython-input-5-2db727483d6e&gt; in &lt;module&gt;()
        3 service
        4 
  ----&gt; 5 service.entities['ID']
  
  KeyError: 'ID'
  </code></pre>