Turns a JSON structure into a python object.

def parse(binary, **params):
    """Turns a JSON structure into a python object."""
    encoding = params.get('charset', 'UTF-8')
    return json.loads(binary, encoding=encoding)