Skip to content

A simple JSON parser/stringifier in Python made for study purposes

Notifications You must be signed in to change notification settings

pedrochaves/pyjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyjson

Edit A simple JSON parser/stringifier in Python made for study purposes. Tries to validate according to JSONLint rules.

Usage and examples

Stringifying stuff to JSON

import pyjson

my_data = {
    "my_array": [[0, 0], [1, 2]],
    "is_something": True,
    "this_is": None,
    "dict": {
        "name": "pedrochaves",
        "another_list": ["my_string"]
    }
}

# Returns a string representation of the data in JSON
json_string = pyjson.stringify(my_data)

# ...or you can save it to a file
pyjson.to_file("my_data.json", my_data)

About

A simple JSON parser/stringifier in Python made for study purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages