A Python package to enable reading/writing of json files with comments
Project description
JSONC
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.dump(JSONCDict)
jsonc.dumps(JSONCDict, file)
In addition, you can accesss the raw JSON string without comments by using
data_dict = JSONCDict()
data_dict.without_comments
and you can access the string with comments by using
data_dict = JSONCDict()
data_dict.with_comments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsoncparser-0.0.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for jsoncparser-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e596f0bedeb872d363113968d82a72918c8b897b5d46a81e1a28e83c4f3ceebf |
|
MD5 | 73247014f9299b020fe25d4d48dd25da |
|
BLAKE2b-256 | 72b97912529a0d2751ad6a8f5fbd869f4f4c1a359dc97584ffaf33b9bcc18e37 |