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.0.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsoncparser-1.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsoncparser-1.0.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

File hashes

Hashes for jsoncparser-1.0.3.tar.gz
Algorithm Hash digest
SHA256 210c1e32e376c22b5a78fe847abb85f8717dc7199d10f2014783b0a43f31fca9
MD5 b3daaad4bc1289870fa1feb3bbe4fb18
BLAKE2b-256 c391a3a1631d2d5d837f4311c3026bcbf7e8a3f6f179f9fc0f62a8feb59067db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsoncparser-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

File hashes

Hashes for jsoncparser-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4b2b0273d71ccbff784877b1ec1fdcf042363a1cf30b236c9f9dbc0432afdcb7
MD5 ac0c80767b46b80a53ecd0aa5660954d
BLAKE2b-256 60937360177b0fcdbc0af3ccc49e74864446302dd2efca7afba18450fda2c7c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page