'Return the value of a query string parameter as a dict.
Given a JSON value, parse and return it as a dict.
Args:
name (str): Parameter name, case-sensitive (e.g., \'payload\').
Keyword Args:
required (bool): Set to ``True`` to raise ``HTTPBadRequest``
instead of returning ``None`` when the parameter is not
found (default ``False``).
store (dict): A ``dict``-like object in which to place the
value of the param, but only if the param is found
(default ``None``).
Returns:
dict: The value of the param if it is found. Otherwise, returns
``None`` unless required is ``True``.
Raises:
HTTPBadRequest: A required param is missing from the request.
HTTPInvalidParam: The parameter\'s value could not be parsed as JSON.'

def get_param_as_dict(self, name, required=False, store=None):

    param_value = self.get_param(name, required=required)
    if (param_value is None):
        return None
    try:
        val = json.loads(param_value)
    except ValueError:
        msg = 'It    could    not    be    parsed    as    JSON.'
        raise errors.HTTPInvalidParam(msg, name)
    if (store is not None):
        store[name] = val
    return val
