No project description provided
Project description
jsonml
This library is a python implementation of jsonml.
See below for jsonml specifications.
Requirement
- Python 3.8+
Getting Started
from jsonml import Parser
parser = Parser()
obj = ["tag1", ["tag2", ["tag3", "1"]]]
tree_1 = parser.parse_from_obj(obj)
xml_1 = parser.to_xml(tree_1)
jsonml = parser.to_jsonml(tree_1)
tree_2 = parser.parse_from_xml_string(xml_1)
assert parser.to_jsonml(tree_2) == jsonml
<tag1><tag2><tag3>1</tag3></tag2></tag1>
[
"tag1",
[
"tag2",
[
"tag3",
"1"
]
]
]
Contribute
poetry install
pre-commit install
source .venv/bin/activate
make
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsonml-0.0.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
jsonml-0.0.1-py3-none-any.whl
(2.5 kB
view hashes)