Skip to main content

A JSON helper for Python

Project description


JSON, but with a lisp. This is a utility to make working with JSON files easier.


pip install jthon


import jthon
a_new_dict = {
    'fruits': {
        'apples': 2,
        'orange': 4,
        'pears': 1
example = jthon.load('fruits', a_new_dict)
find = example.find(key='apple', exact=False)
for found in find:
    print("I've found '{}', with a value of '{}'.".format(found.key, found.value))

print("There are {} oranges in the dict!".format(example.get('fruits').get('orange')))
example['fruits']['peach'] = 1

More examples can be found in the examples folder


python3 >



This project is licensed under MIT - see the LICENSE file for details

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jthon, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size jthon-1.0.2-py3-none-any.whl (5.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jthon-1.0.2.tar.gz (20.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page