def _from_json(json_str):
    'Turns json -> object (or None if json cannot be parsed).'
    try:
        return transforms.loads(json_str)
    except:
        return None
Turns json -> object (or None if json cannot be parsed).
def _from_json(json_str):
    
    try:
        return transforms.loads(json_str)
    except:
        return None