[Python3]Reformatting JSON correctly
<p>I am scraping a website with Requests and BS4, and I pulled the following JSON (if you could call it that). The problem is it is not really formatted correctly:</p>

<pre><code>{'event':'productClick', 'userId': null,
  'portalId': null,
  'cookieId': null,
  'customerId': null,
  'customerType': null,
  'sessionId': null,
  'displayMode': null,
  'userAgent': null,
  'language_Iso639_1Code': null,
  'userAgentIsMobile': null,
  'user': null,
  'ecommerce': {
    'click': {
      'actionField': {
        'list': 'Produktdetails Varianten',
        'id': null
      },
      'products': [
        {
          'id': '5714877',
          'name': 'G-Series G610 Orion Brown',
          'price': '139.0000',
          'brand': 'Logitech',
          'category': 'Tastatur',
          'variant': 'USB, CH, Kabel, MX-Brown',
          'gx_nameWithBrand': 'Logitech G-Series G610 Orion Brown',
          'gx_brandId': 292,
          'gx_productTypeId': 55,
          'gx_priceExcl': 'CHF 128.70',
          'gx_isSalesPromotion': false,
          'gx_isShownInShowRoom': false,
          'gx_rating': 4.5,
          'gx_productGroup1': 389,
          'gx_productGroup2': 254
        }
      ]
    }
  }}
</code></pre>

<p>Is there any way I can have the JSON formatted to JSON standards?</p>