https://github.com/eggplants/jason-json
Jason (https://jason.co.jp) JSON Builder
https://github.com/eggplants/jason-json
Last synced: about 1 year ago
JSON representation
Jason (https://jason.co.jp) JSON Builder
- Host: GitHub
- URL: https://github.com/eggplants/jason-json
- Owner: eggplants
- License: mit
- Created: 2022-09-10T12:46:06.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-06-02T16:52:23.000Z (about 1 year ago)
- Last Synced: 2025-06-14T09:41:55.592Z (about 1 year ago)
- Language: Python
- Homepage: http://egpl.dev/jason-json/
- Size: 193 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [](https://jason.co.jp/) jason-json
[](
) [](
) [](
) [](
)
[](
) [](
)
[Jason](https://jason.co.jp) JSON Builder
## Install
```bash
pip install git+https://github.com/eggplants/jason-json
# or...
pip install jason-json
```
## CLI Usage
You can run this program as `jason-json` or `jason.json` on CLI.
```shellsession
$ jason.json | jq '[to_entries[] | {(.key): .value | length}] | add'
{
"東京都": 27,
"千葉県": 33,
"神奈川県": 1,
"埼玉県": 29,
"茨城県": 18,
"栃木県": 4,
"群馬県": 5
}
$ jason.json | jq '."東京都"[0]'
{
"name": "足立鹿浜店",
"address": "東京都足立区鹿浜6-34-19",
"link": "http://jason.co.jp/wptest/?p=5079",
"business_time": {
"begin_sec": 36000,
"end_sec": 79200,
"duration_sec": 43200,
"duration_str": "10:00~22:00"
}
}
```
[`jason.json`](https://github.com/eggplants/jason-json/blob/master/jason.json) is the result with running `jason.json -O -s jason.json -i 2`.
### Help
```shellsession
$ jason.json -h
usage: jason.json [-i INDENT] [-O] [-s SAVE] [-u URL] [-V] [-h]
Jason (https://jason.co.jp) JSON Builder.
options:
-i INDENT, --indent INDENT
number of indentation spaces in json (default: 2)
-O, --overwrite overwrite if save path already exists (default: False)
-s SAVE, --save SAVE save json to given path (default: None)
-u URL, --url URL target url (default: https://jason.co.jp/network)
-V, --version show program's version number and exit (default: False)
-h, --help show this help message and exit
```
### from Docker
Try:
```bash
docker run -it ghcr.io/eggplants/jason-json -h
```
## License
MIT