Skip to main content

A Python package to enable reading/writing of json files with comments

Project description

JSONC

Install

pip install jsoncparser

Getting Started

To use JSONC, add the following import statement to your code

import jsonc

You can then use the four functions below to interact with your jsonc file and data

jsonc.load(file)
jsonc.loads(str)
jsonc.dumps(JSONCDict)
jsonc.dump(JSONCDict, file)

In addition, you can access the dictionary with stored comments by using

data_dict = JSONCDict()
data_dict.with_comments

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

jsoncparser-1.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

jsoncparser-1.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file jsoncparser-1.1.0.tar.gz.

File metadata

  • Download URL: jsoncparser-1.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for jsoncparser-1.1.0.tar.gz
Algorithm Hash digest
SHA256 204e5aac3cb2766fb649793c9300d65866371bfd65eccc810fb88312475f6dc2
MD5 52cb3ae3ef33826aabab36eb3f14e632
BLAKE2b-256 f3f240c8eade66638aff6ca4873e8f283894537eeb458689decbd1a9b020d2cd

See more details on using hashes here.

File details

Details for the file jsoncparser-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: jsoncparser-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for jsoncparser-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12d139e3d41f1c4cfe9c0af85a0cadffe7c1a0327b5a414d5bd05f159c792d89
MD5 d1297997a7a0b5cfa2cdf7a79faf6071
BLAKE2b-256 85b7617de8cf177d98449140b56bd8484c25416b97aa9b6572a015154816bc65

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