OS Manuals

/opt/chainguard/jupyterhub-k8s-singleuser-sample/bin/pyjson5

JupyterHub single-user notebook server sample (JupyterLab) from zero-to-jupyterhub-k8s

From jupyterhub-k8s-singleuser-sample 4.4.5-r0 (enterprise-packages), captured 2026-11-08 by running pyjson5 --help (exit 0). permalink

usage: json5 [options] [FILE]

A tool to parse and pretty-print JSON5.

Usage:

    $ echo '{foo:"bar"}' | python -m json5
    {
        foo: 'bar',
    }
    $ echo '{foo:"bar"}' | python -m json5 --as-json
    {
        "foo": "bar"
    }

positional arguments:
  FILE                  optional file to read JSON5 document from; if not specified or "-", will
                        read from stdin instead

options:
  -h, --help            show this help message and exit
  -V, --version         show JSON5 library version (0.17.3)
  -c STR                inline json5 string to read instead of reading from a file
  --as-json             output as JSON (same as --quote-keys --no-trailing-commas)
  --indent INDENT       amount to indent each line (default is 4 spaces)
  --quote-keys          quote all object keys
  --no-quote-keys       don't quote object keys that are identifiers (this is the default)
  --trailing-commas     add commas after the last item in multi-line objects and arrays (this is
                        the default)
  --no-trailing-commas  do not add commas after the last item in multi-line lists and objects
  --strict              Do not allow control characters (\x00-\x1f) in strings (default)
  --no-strict           Allow control characters (\x00-\x1f) in strings
  --quote-style {always_double,always_single,prefer_double,prefer_single}
                        Controls how strings are encoded. By default they are always double-quoted
                        ("always_double")
Options (12)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
-V, --versionshow JSON5 library version (0.17.3)help
-c STRinline json5 string to read instead of reading from a filehelp
--as-jsonoutput as JSON (same as --quote-keys --no-trailing-commas)help
--indent INDENTamount to indent each line (default is 4 spaces)help
--quote-keysquote all object keyshelp
--no-quote-keysdon't quote object keys that are identifiers (this is the default)help
--trailing-commasadd commas after the last item in multi-line objects and arrays (this is the default)help
--no-trailing-commasdo not add commas after the last item in multi-line lists and objectshelp
--strictDo not allow control characters (\x00-\x1f) in strings (default)help
--no-strictAllow control characters (\x00-\x1f) in stringshelp
--quote-style always_doubleControls how strings are encoded.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.