Skip to main content

jason logo jason-json

PyPI version CI

ghcr latest ghcr size

Jason JSON Builder

Install

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.

$ 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 is the result with running jason.json -O -s jason.json -i 2.

Help

$ 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:

docker run -it ghcr.io/eggplants/jason-json -h

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jason_json-1.1.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jason_json-1.1.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file jason_json-1.1.2.tar.gz.

File metadata

  • Download URL: jason_json-1.1.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jason_json-1.1.2.tar.gz
Algorithm Hash digest
SHA256 7127987edb2050db8909e0a15559ce0cba08e5f1c2d33b338f1ea1469a5a10bd
MD5 d2b5ed2a34b9d61ee5954667196130ec
BLAKE2b-256 0ba80fd8ecf67a7ab5ae27ed87564b2384b8ad6e530d8197c88d89dc1e8a86fd

See more details on using hashes here.

File details

Details for the file jason_json-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: jason_json-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jason_json-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a67b97fef2d245dd1baa181d5db9c84e6407461bdc4c085d6fbdb0d70430309
MD5 b3f4aebce9ed1e9a77c695d99b80430d
BLAKE2b-256 492fc89632c47ccc0a750c81adf5b42fe4ab7351259d99a8a74f6b84b22768c8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 files

1.1.1

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.0.1

2 files

0.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page