https://github.com/anki-code/jj
enJoy Json (JJ) is to syntax highlighting and formatting the json, javascript or python dict object in error-tolerant manner.
https://github.com/anki-code/jj
json
Last synced: 11 months ago
JSON representation
enJoy Json (JJ) is to syntax highlighting and formatting the json, javascript or python dict object in error-tolerant manner.
- Host: GitHub
- URL: https://github.com/anki-code/jj
- Owner: anki-code
- Created: 2023-05-26T16:17:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-08T14:21:06.000Z (about 1 year ago)
- Last Synced: 2025-01-12T20:09:00.955Z (about 1 year ago)
- Topics: json
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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:
```xsh
pip install git+https://github.com/anki-code/jj
```
## Usage
### Get json from stream
```xsh
echo '{"name": "John Doe", \'age\': 30, "city": "New York"}' | jj
```
```json
{
"name": "John Doe",
"age": 30,
"city": "New York"
}
```
### In case of object error
```xsh
echo '{"name":' | jj
# JSON dict error: Expecting value: line 2 column 1 (char 9)
# Python dict error: '{' was never closed (, line 1)
# JavaScript dict error: Unexpected end of input
```