Skip to main content

Some basic functions used often with JSON files

Project description


A Python library for using JSON files.


To open a file:

from pyjsonutils import pyjsonutils

To write to a file:

from pyjsonutils import pyjsonutils
pyjsonutils.write_dict_to_file(dictionary, "file_path.json")

To update a JSON file:

from pyjsonutils import pyjsonutils

Find the first key having a given value:

from pyjsonutils import pyjsonutils
pyjsonutils.find_key_from_value(dictionary, value)

Create a default value for a key if the key does not exist:

from pyjsonutils import pyjsonutils
pyjsonutils.create_default_if_key_not_there(dictionary, key, default_value)

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

pyjsonutils-0.3.0.tar.gz (2.6 kB view hashes)

Uploaded source

Built Distribution

pyjsonutils-0.3.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page