anyconfig.backend.json.common

Globals, functions common in some JSON backend modules.

Changelog:

Added in version 0.9.8.

class anyconfig.backend.json.common.Parser

Bases: StringStreamFnParser

Parser for JSON files.

_cid: ClassVar[str] = 'json.stdlib'
_type: ClassVar[str] = 'json'
_extensions: tuple[str, ...] = ('json', 'jsn', 'js')
_ordered: ClassVar[bool] = True
_allow_primitives: ClassVar[bool] = True
_load_opts: tuple[str, ...] = ('cls', 'object_hook', 'parse_float', 'parse_int', 'parse_constant', 'object_pairs_hook')
_dump_opts: tuple[str, ...] = ('skipkeys', 'ensure_ascii', 'check_circular', 'allow_nan', 'cls', 'indent', 'separators', 'default', 'sort_keys')
_dict_opts: tuple[str, ...] = ('object_pairs_hook', 'object_hook')
__annotations__ = {'_allow_primitives': 'typing.ClassVar[bool]', '_cid': 'typing.ClassVar[str]', '_extensions': 'tuple[str, ...]', '_ordered': 'typing.ClassVar[bool]', '_type': 'typing.ClassVar[str]'}
__module__ = 'anyconfig.backend.json.common'