Skip to content
/ jj Public

enJoy Json (JJ) is to syntax highlighting and formatting the json, javascript or python dict object in error-tolerant manner.

Notifications You must be signed in to change notification settings

anki-code/jj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

enJoy Json (JJ) is to syntax highlighting and formatting the json, javascript or python dict object in error-tolerant manner.

If you like the idea click ⭐ on the repo and tweet.

Installation

To install use PyPi:

pip install git+https://github.com/anki-code/jj

Usage

Get json from stream

echo '{"name": "John Doe", \'age\': 30, "city": "New York"}' | jj
{
    "name": "John Doe",
    "age": 30,
    "city": "New York"
}

In case of object error

echo '{"name":' | jj
# JSON dict error: Expecting value: line 2 column 1 (char 9)
# Python dict error: '{' was never closed (<unknown>, line 1)
# JavaScript dict error: Unexpected end of input

About

enJoy Json (JJ) is to syntax highlighting and formatting the json, javascript or python dict object in error-tolerant manner.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages