code: def generate_highwire_json(highwire_elements):
      
      highwire_dict = highwirepy2dict(highwire_elements)
      return json.dumps(highwire_dict, sort_keys=True, indent=4)
docs: Convert highwire elements into a JSON structure.
  
      Returns data as a JSON formatted string.