An open API service indexing awesome lists of open source software.

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.

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
```