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.4.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.4.0
File Size Uploaded
jsonyx-2.4.0.tar.gz 59.0 kB Details

Built distribution (wheel)

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

Total release size: 114.0 kB

Release files / jsonyx-2.4.0.tar.gz

Download URL jsonyx-2.4.0.tar.gz
Size 59.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d730f4685857ca5a79a2cf1984d4243d35a28bed42550586dd111351eda5fb15
BLAKE2b-256 checksum
How to use checksums
789557dc2fad4435b7bc1b00366585d756faa061469f54e7ce85e2cfcd51c011
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

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

Download URL jsonyx-2.4.0-cp313-cp313-win_amd64.whl
Size 55.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
014f80f02211be90fb73352805c92f2efbe8ce05ad3806f0cb74075513107787
BLAKE2b-256 checksum
How to use checksums
82f63d101f95d6a09b5cce0448460f1c7a8d3c2626ed87d6881aad33cc5624e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

2.4.0 This release

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.8

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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