api/survey_api.py
def recursive_survey_content_json_decode(json_entity: str):
    """ Decodes through up to 100 attempts a json entity until it has deserialized to a list. """
    count = 100
    decoded_json = None
    while not isinstance(decoded_json, list):
        count -= 1
        if count < 0:
            raise Exception("could not decode json entity to list")
        decoded_json = json.loads(json_entity)
    return decoded_json
 Decodes through up to 100 attempts a json entity until it has deserialized to a list. 
Decodes through up to 100 attempts a json entity until it has deserialized to a list.
Decodes through up to 100 attempts a json entity until it has deserialized to a list .
def recursive_survey_content_json_decode(json_entity: str):
    count = 100
    decoded_json = None
    while not isinstance(decoded_json, list):
        count -= 1
        if count < 0:
            raise Exception("could not decode json entity to list")
        decoded_json = json.loads(json_entity)
    return decoded_json
def recursive_survey_content_json_decode ( json_entity : str ) : count = 100 decoded_json = None while not isinstance ( decoded_json , list ) : count -= 1 if count < 0 : raise Exception ( "could not decode json entity to list" ) decoded_json = json . loads ( json_entity ) return decoded_json
Decodes through up to 100 attempts a json entity until it has deserialized to a list.
Decodes through up to 100 attempts a json entity until it has deserialized to a list .
""" Decodes through up to 100 attempts a json entity until it has deserialized to a list. """
json_entity
str