def _unquote_json(quoted_json_document): """URI-decode and then JSON-decode the given document.""" json_document = unquote(quoted_json_document) return json.loads(json_document)