Skip to main content

jsonc-document

A typed JSONC parser that preserves comments, tokens, and source spans. It requires Python 3.12 or newer and has no runtime dependencies.

Installation

pip install jsonc-document

Usage

"""Parse JSONC while preserving source comments."""

import jsonc_document

source = '// heading\n{"count": 2}'
document = jsonc_document.parse(source=source)
assert document.value == {"count": 2}
assert document.comments[0].text == "// heading"
assert document.to_source() == source

Use loads(source=...) when only Python values are needed. See the documentation for the full API and parsing policies.

Metadata

Release files for jsonc-document 2026.10.15

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

Source distribution (sdist)

Source distribution for jsonc-document 2026.10.15
File Size Uploaded Provenance Actions
jsonc_document-2026.10.15.tar.gz 41.4 kB With provenance Details for jsonc_document-2026.10.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jsonc-document 2026.10.15
File Interpreter ABI Platform Actions
jsonc_document-2026.10.15-py3-none-any.whl Python 3 none any Details for jsonc_document-2026.10.15-py3-none-any.whl

Total release size: 51.1 kB

Release files / jsonc_document-2026.10.15.tar.gz

Download URL jsonc_document-2026.10.15.tar.gz
Size 41.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fbe17fa2ae2b5f5058f07e6480b6530f656927e0ec492c009bc5af875e7e07f7
BLAKE2b-256 checksum
How to use checksums
718cbb4eee8cf2e918706c56b0cd3cac51b812f3202408427aefc3219a0f6705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / jsonc_document-2026.10.15-py3-none-any.whl

Download URL jsonc_document-2026.10.15-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99d9eb17b923125790e53821e5576bc9924318513060018b1794e287c9a7a3de
BLAKE2b-256 checksum
How to use checksums
17f08b69461a383f5f31cc44eda98b1c91f8817101e921c51da05b9b461c909e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Security for jsonc-document 2026.10.15

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jsonc_document-2026.10.15.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

2026.10.15 This release

2 release files Full provenance

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