prettyjson 1.0.3

Creator: railscoder56

Last updated:

Add to Cart

Description:

prettyjson 1.0.3

Pretty JSON
Tool for printing pretty JSON (just for the missing options in json.tool)
For the issues in Python bug tracker:

Specifying indent in the json.tool command
Add an option to json.tool to bypass non-ASCII characters

Installing
Install and update using pip:
pip install -U prettyjson

Usage Examples
Example 1
echo '{"name": "vimfun", "from": "The Earth"}' | python -m prettyjson

Result:
{
"name": "vimfun",
"from": "The Earth",

}

Example 2
echo '{"name": "vimfun", "from": "The Earth"}' | python -m prettyjson --indent=2

Result:
{
"name": "vimfun",
"from": "The Earth"
}

Example 3
echo '{"name": "王旭林", "from": "The Earth"}' | python -m prettyjson --indent=2 --no-ensure-ascii

Result:
{
"name": "王旭林",
"from": "The Earth"
}

Links


Website: https://github.com/vimfun/prettyjson


Releases: https://pypi.org/project/prettyjson/


Code: https://github.com/vimfun/prettyjson


Issue tracker: https://github.com/vimfun/prettyjson/issues


Test status:

Linux, Mac: https://travis-ci.org/vimfun/prettyjson
Windows: https://ci.appveyor.com/project/vimfun/prettyjson



Test coverage: https://codecov.io/gh/vimfun/prettyjson

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.