Convert highwire elements into a JSON structure.

    Returns data as a JSON formatted string.

def generate_highwire_json(highwire_elements):
    """Convert highwire elements into a JSON structure.

    Returns data as a JSON formatted string.
    """
    highwire_dict = highwirepy2dict(highwire_elements)
    return json.dumps(highwire_dict, sort_keys=True, indent=4)