Decoding JSONC
Better JSON tools provide new ways of loading JSON files.
- load_jsonc(jsonc_path: Union[Path, str]) JSONWalker[source]
Loads JSONC file into a JSON walker object.
- class JSONCDecoder(*args, **kwargs)[source]
Bases:
JSONDecoderJSONDecoder with support for C-style comments. Similar to JSONC files from Visual Studio code but without support for trailing commas.
JSONCDecoder can be used in cls argument of json.load and json.loads of startdard Python module - json.