Skip to main content

jsonyx module

Project description

jsonyx

pytest docs

jsonyx is a robust JSON encoder and decoder for Python 3.10+. It is written in pure Python with an optional C extension for better performance and no dependencies

Key Features:

  • Dedicated functions for reading and writing files
  • Detailed error messages:
      File "C:\Users\wanne\Downloads\broken.json", line 2, column 15-19
         "path": "c:\users"
                      ^^^^
    jsonyx._decoder.JSONSyntaxError: Expecting 4 hex digits
    
  • Optionally supports these JSON deviations:
    {
        /* Block */ // and line comments
        "Decimal numbers": [1.0000000000000001, 1e400],
        "Duplicate keys": {"key": "value 1", "key": "value 2"},
        "Missing comma's": [1 2 3],
        "NaN and infinity": [NaN, Infinity, -Infinity],
        "Trailing comma": [0,],
        "Surrogates": "\ud800"
    }
    

The latest documentation for jsonyx is available online at: https://jsonyx.readthedocs.io/en/stable/usage.html

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

jsonyx-1.2.1.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

jsonyx-1.2.1-cp312-cp312-win_amd64.whl (62.2 kB view details)

Uploaded CPython 3.12 Windows x86-64

File details

Details for the file jsonyx-1.2.1.tar.gz.

File metadata

  • Download URL: jsonyx-1.2.1.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for jsonyx-1.2.1.tar.gz
Algorithm Hash digest
SHA256 8c44b4392cf587d2ff4101484eb440c47d688a1b4c3278728e214069b39788bc
MD5 a840b0f612417c2435f0b2e4756d2ec5
BLAKE2b-256 c022b22997bb7fad722c58140fa5a3daa6f6d22baf25f850e88ec18f84d11ef2

See more details on using hashes here.

File details

Details for the file jsonyx-1.2.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: jsonyx-1.2.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 62.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for jsonyx-1.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 90564bb578359d7e6ccdfc0ea1c686cace9293b994bd467f23a44195b966135d
MD5 7e60839fdf68cd34d33b0e46315e8019
BLAKE2b-256 cbd4f42d597ced0e7675385ac231ca17737353fe5af0f260b1cde065a561361b

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