Skip to content

blablatdinov/eljson

Repository files navigation

eljson

EO principles respected here

Build Status codecov Python Version wemake-python-styleguide

This is how python package should look like!

Features

  • Object oriented work with JSON

Installation

pip install eljson

Example

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')

License

MIT

Credits

This project was generated with wemake-python-package. Current template version is: a10c1e14ff468a4328dbe36a6b9a6a321d80da60. See what is updated since then.