This is how python package should look like!
- Object oriented work with
JSON
pip install eljson
from eljson.strict_json import StrictJson
from eljson.json_doc import JsonDoc
StrictJson.from_string(
JsonDoc.from_string(
'{"hello": {"world": "!"}}',
),
"""
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"hello": {
"type": "object",
"properties": {
"world": {"type": "string"}
},
"required": ["world"]
}
},
"required": ["hello"]
}
""",
).path('$.hello.world')
This project was generated with wemake-python-package
. Current template version is: a10c1e14ff468a4328dbe36a6b9a6a321d80da60. See what is updated since then.