+
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

15 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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载