code: def usufyToJsonExport(d, fPath):
      
      oldData = []
      try:
          with open (fPath) as iF:
              oldText = iF.read()
              if oldText != "":
                  oldData = json.loads(oldText)
      except:
          # No file found, so we will create it...
          pass
  
      jsonText =  json.dumps(oldData+d, indent=2, sort_keys=True)
  
      with open (fPath, "w") as oF:
          oF.write(jsonText)
docs: Workaround to export to a json file.
  
      Args:
      -----
          d: Data to export.
          fPath: File path for the output file.