app/iiif.py
def json_get(iiif_uri: str) -> Tuple[int, Optional[Any]]:
    """
    Return an OrderedDict from a URI which returns JSON.

    :param iiif_uri: ID/URI for the JSON
    :return: html status code, OrderedDict
    """
    r = requests.get(iiif_uri)
    if r.status_code == requests.codes.ok:
        od = json.loads(r.text, object_pairs_hook=OrderedDict)
        return r.status_code, od
    else:
        return r.status_code, None

    Return an OrderedDict from a URI which returns JSON.

    :param iiif_uri: ID/URI for the JSON
    :return: html status code, OrderedDict
    
Return an OrderedDict from a URI which returns JSON.
Return an OrderedDict from a URI which returns JSON .
def json_get(iiif_uri: str) -> Tuple[int, Optional[Any]]:
    r = requests.get(iiif_uri)
    if r.status_code == requests.codes.ok:
        od = json.loads(r.text, object_pairs_hook=OrderedDict)
        return r.status_code, od
    else:
        return r.status_code, None
def json_get ( iiif_uri : str ) -> Tuple [ int , Optional [ Any ] ] : r = requests . get ( iiif_uri ) if r . status_code == requests . codes . ok : od = json . loads ( r . text , object_pairs_hook = OrderedDict ) return r . status_code , od else : return r . status_code , None
Return an OrderedDict from a URI which returns JSON.
Return an OrderedDict from a URI which returns JSON .
"""
    Return an OrderedDict from a URI which returns JSON.

    :param iiif_uri: ID/URI for the JSON
    :return: html status code, OrderedDict
    """
html status code, OrderedDict
html status code OrderedDict
iiif_uri
str
ID/URI for the JSON
ID / URI for the JSON