Skip to main content

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(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


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.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

jsonml-0.0.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file jsonml-0.0.3.tar.gz.

File metadata

  • Download URL: jsonml-0.0.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.6.9 Linux/4.19.104-microsoft-standard

File hashes

Hashes for jsonml-0.0.3.tar.gz
Algorithm Hash digest
SHA256 697cb7f31110c8291f721a4db25569bbc92830373ca09d681c3d36116bb630cc
MD5 9c6ca79b98cc31b54b6bd8318ab8345a
BLAKE2b-256 f292e1757ac2a06592d9e5965f2c9aa04d85e10de9bcbe2c87e0d2af0fb819d3

See more details on using hashes here.

File details

Details for the file jsonml-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: jsonml-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.6.9 Linux/4.19.104-microsoft-standard

File hashes

Hashes for jsonml-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 572135e6fa5e0225d5e76ff1bc99297b8f8952aa6344a4196ba9a8b712f8c75a
MD5 43c72adad96ed177f9ed38c1f8906ad9
BLAKE2b-256 99cdcea18ede04a94471af6bf678241719d32de71cae221f3c785f29d9cc6298

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page