docs: def write_json_to_file(json_data, filename="metadata"):
      """
      Write all JSON in python dictionary to a new json file.
      :param any json_data: JSON data
      :param str filename: Target filename (defaults to 'metadata.jsonld')
      :return None:
      """
      # Use demjson to maintain unicode characters in output
      json_bin = demjson.encode(json_data, encoding='utf-8', compactly=False)
      # Write json to file
      try:
          open("{}.json".format(filename), "wb").write(json_bin)
      except FileNotFoundError as e:
          print("Error: Writing json to file: {}".format(filename))
      return