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.
To install use PyPi:
pip install git+https://github.com/anki-code/jj
echo '{"name": "John Doe", \'age\': 30, "city": "New York"}' | jj
{
"name": "John Doe",
"age": 30,
"city": "New York"
}
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