Skip to main content

jsonyx

pypi conda-forge python license pytest docs downloads

jsonyx is a customizable JSON library for Python 3.8+. It is written in pure Python with an optional C extension for better performance and no dependencies.

Key Features

  • JSON encoding, decoding and patching:
    >>> import jsonyx as json
    >>> json.dumps(["foo", {"bar": ("baz", None, 1.0, 2)}])
    '["foo", {"bar": ["baz", null, 1.0, 2]}]\n'
    >>> json.loads('{"foo": ["bar", null, 1.0, 2]}')
    {'foo': ['bar', None, 1.0, 2]}
    >>> json.apply_patch([1, 2, 3], {"op": "del", "path": "$[1]"})
    [1, 3]
    
  • Compact formatting of arrays and objects:
    {
        "foo": [1, 2, 3],
        "bar": {"a": 1, "b": 2, "c": 3}
    }
    
  • Optionally supports these JSON deviations (specified in the documentation):
    {
        /* Block */ // and line comments
        "Missing commas": [1 2 3],
        "NaN and infinity": [NaN, Infinity, -Infinity],
        "Surrogates": "\ud800",
        "Trailing comma": [0,],
        "Unquoted keys": {key: "value"}
    }
    
  • Detailed error messages:
    Traceback (most recent call last):
      File "/Users/wannes/Downloads/broken.json", line 1, column 99-381
        ...sList": {"GlossEntry": {"ID": "SGM..."GML", "XML"]}, "GlossSee": "markup"
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    jsonyx.JSONSyntaxError: Unterminated object
    

The documentation for jsonyx is available online at: https://jsonyx.readthedocs.io

Metadata

Release files for jsonyx 2.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jsonyx 2.6.0
File Size Uploaded Provenance Actions
jsonyx-2.6.0.tar.gz 62.4 kB Without provenance Details for jsonyx-2.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jsonyx 2.6.0
File Interpreter ABI Platform Actions
jsonyx-2.6.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for jsonyx-2.6.0-cp313-cp313-win_amd64.whl

Total release size: 138.2 kB

Release files / jsonyx-2.6.0.tar.gz

Download URL jsonyx-2.6.0.tar.gz
Size 62.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d7932a30ac3829db8ae0709a5ec33b11eb9d6950240102b844fa1da8d1ea0f9c
BLAKE2b-256 checksum
How to use checksums
ff590d298a736554df2cb1ed4d8f2ddb3d68e55bab4e0778cda9b2789999c4c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Release files / jsonyx-2.6.0-cp313-cp313-win_amd64.whl

Download URL jsonyx-2.6.0-cp313-cp313-win_amd64.whl
Size 75.8 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f8fc55cef13a689d0e91248a435d07f26b8c0229225e891b740447273afdd39d
BLAKE2b-256 checksum
How to use checksums
8c62e1fc0c9e8488706fab1952f55648f167b05e4558fbcb02aeb68b3269a215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Security for jsonyx 2.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page