utils package

Submodules

utils.json module

class utils.json.Json(obj: any | str, is_file_path: bool = False)[source]

Bases: Base

get_all_keys()[source]

Returns all possible JSON keys in parsed JSON

get_all_values()[source]

Returns all possible JSON values in parsed JSON

parse(key: str | None = None)[source]

Run any JPath query in parsed CJSON/ JSON.

Returns full JSON if key is not provided

replace(jpath: str, value: str, obj: any)[source]
utils.json.is_content_json(content: str, is_file_path: bool = False)[source]

Module contents