Parsing Javascript Dictionary¶
- class qqqr.utils.jsjson.AstLoader¶
AstLoaderuses standardastmodule to parse the js/json- classmethod json_loads(js, filename='stdin')¶
The
json_loads()function loads a JSON object from a js/json string. It uses standardastmodule to parse the js/json.
- qqqr.utils.jsjson.json_loads(js)¶
The
json_loads()function converts a string representation of JS/JSON data into a Python object. Current implementation is usingast.If you need more parameters or another implementation, call
xxxLoader.json_loadsinstead.- 参数:
js (
str) -- Used to Pass the JS/JSON string.- 返回类型:
Union[int,float,bool,str,Dict[Union[int,float,bool,str],Union[int,float,bool,str,Dict[Union[int,float,bool,str], JsonValue],List[JsonValue]]],List[Union[int,float,bool,str,Dict[Union[int,float,bool,str], JsonValue],List[JsonValue]]]]- 返回:
A
JsonValueobject.