Skip to content

Puzanira/4_json

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Prettify JSON

Simple console script to look at .json file

What it does:

Opens a raw .json file and then prints it in your terminal with spaces and indentations in an easy-to-read way

How to use:

Example of script launch on Linux, Python 3.5:

$ python pprint_json.py <path to file>

Raw JSON file:

{"employees":[{ "firstName":"John", "lastName":"Doe" },{ "firstName":"Anna", "lastName":"Smith" }]}

Output:

{
    "employees": [
        {
            "firstName": "John",
            "lastName": "Doe"
        },
        {
            "firstName": "Anna",
            "lastName": "Smith"
        }
    ]
}

Project Goals

The code is written for educational purposes. Training course for web-developers - DEVMAN.org

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%