jsonextended.parsers.jsons module

class jsonextended.parsers.jsons.JSON_Parser[source]

Bases: object

Examples

>>> from jsonextended.utils import MockPath
>>> fileobj = MockPath(is_file=True,
... content='{"key1":[1,2,3]}'
... )
>>> with fileobj.open() as f:
...     data = JSON_Parser().read_file(f)
>>> list(data.values())
[[1, 2, 3]]
file_regex = '*.json'
plugin_descript = 'read *.json files using json.load'
plugin_name = 'json.basic'
read_file(file_obj, **kwargs)[source]