(data)
return dict_value
Returns a dict object from the stored string in the database.
Returns a dict object from the stored string in the database.
Returns a dict object from the stored string in the database .
def decode(data):
        """Returns a dict object from the stored string in the database."""
        dict_value = json.loads(data)
        if not isinstance(dict_value, dict):
            raise ValueError(
                'Unable to read in the data, it\'s not stored as a dictionary')
        return dict_value
def decode ( data ) : dict_value = json . loads ( data ) if not isinstance ( dict_value , dict ) : raise ValueError ( 'Unable to read in the data, it\'s not stored as a dictionary' ) return dict_value