Bootstrap FreeKB - Python (Scripting) - Parse JSON using json.tool
Python (Scripting) - Parse JSON using json.tool

Updated:   |  Python (Scripting) articles

There are a number of different ways to parse JSON.

The python -m json.tool command can be used to produce human friendly JSON output on the command line.

~]$ echo '{ "foo": "Hello", "bar": "World" }' | python -m json.tool
{
    "bar": "World",
    "foo": "Hello"
}

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 923f61 in the box below so that we can be sure you are a human.