Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

anki-code/jj

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
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

Sponsor this project

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.