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 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