(data: Union[str, bytes])
return ujson.loads(data)
Deserialize unicode or bytes to a Python object.

    data (str / bytes): The data to deserialize.
    RETURNS: The deserialized Python object.
Deserialize unicode or bytes to a Python object.
Deserialize unicode or bytes to a Python object .
def json_loads(data: Union[str, bytes]) -> JSONOutput:
    """Deserialize unicode or bytes to a Python object.

    data (str / bytes): The data to deserialize.
    RETURNS: The deserialized Python object.
    """
    # Avoid transforming the string '-' into the int '0'
    if data == "-":
        raise ValueError("Expected object or value")
    return ujson.loads(data)
def json_loads ( data : Union [ str , bytes ] ) -> JSONOutput : # Avoid transforming the string '-' into the int '0' if data == "-" : raise ValueError ( "Expected object or value" ) return ujson . loads ( data )