1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-27 16:55:26 +02:00
tldr/pages/common/jello.md
Managor 7b752dc4d3
*: fix curly brace syntax, nested placeholders and mismatched brackets (#17210)
* Update rpicam-still.md

* Update jello.md

* Update dropdb.md

* Update aws-eks.md

* Update sfdisk.md

* Update hyperfine.md

* Update quarto.md

* Update for.md

* Update coproc.md

* Update vagrant-validate.md

* Update kubetail.md

* Update kubetail.md

* Update pstoedit.md

* Update highlight.md

* Update linode-cli-linodes.md

* Update swig.md

* Update phpcbf.md

* Update unzipsfx.md

* Update d8.md

* Update trdsql.md

* Update keyd.md

* Update mamba-repoquery.md

* Update pages/common/jello.md

* Update coproc.md

* Apply suggestions from code review

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/common/for.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update for.md

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-07-15 11:17:54 -07:00

1.1 KiB

jello

A JSON processor using Python syntax. More information: https://github.com/kellyjonbrazil/jello.

  • Pretty-print JSON or JSON-Lines data from stdin to stdout:

cat {{file.json}} | jello

  • Output a schema of JSON or JSON Lines data from stdin to stdout (useful for grep):

cat {{file.json}} | jello -s

  • Output all elements from arrays (or all the values from objects) in JSON or JSON-Lines data from stdin to stdout:

cat {{file.json}} | jello -l

  • Output the first element in JSON or JSON-Lines data from stdin to stdout:

cat {{file.json}} | jello _[0]

  • Output the value of a given key of each element in JSON or JSON-Lines data from stdin to stdout:

cat {{file.json}} | jello '[i.{{key_name}} for i in _]'

  • Output the value of multiple keys as a new JSON object (assuming the input JSON has the keys key_name1 and key_name2):

cat {{file.json}} | jello '{{{"key1": _.key_name1, "key2": _.key_name2, ...}}}'

  • Output the value of a given key to a string (and disable JSON output):

cat {{file.json}} | jello -r '"{{some text}}: " + _.{{key_name}}'