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.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

jsoncparser-1.0.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

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