title: How to deal with nested JSON in python?
body: <p>This JSON was given to me by the API.</p>
  <pre><code>[{'archived': False,
    'associations': {'deals': {'results': [{'id': '2762673039',
                                            'type': 'line_item_to_deal'}]}},
    'createdAt': '2020-08-06T15:05:23.253Z',
    'id': '762434477',
    'properties': {'amount': '100',
                   'createdate': '2020-08-06T15:05:23.253Z',
                   'hs_lastmodifieddate': '2020-08-06T15:05:53.701Z',
                   'hs_object_id': '762434477',
                   'hs_product_id': '133248644',
                   'quantity': '1'},
    'updatedAt': '2020-08-06T15:05:53.701Z'},
  </code></pre>
  <p>I want to create a pandas dataframe that has a column for id as well as all of the properties associated with it, in addition to the id nested under &quot;associations&quot;. Essentially I want to remove the properties from being nested under properties and the id from being nested under associations (as well as renamed). How would I go about this?</p>