mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 10:02:10 +02:00

* pages*: improve wording and list placeholders * clamav: fix verb tenses Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * buzzphrase: use k instead of n for number of phrases Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * adguardhome: use non-default instead of different * adguardhome: use configuration instead of config Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * goimports, module: fix list placeholders Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * pages*: leave stems and extensions in the same placeholders * pages*: fix list placeholders * pages*: fix list placeholders * pages*: apply suggestions from code review Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * qpdf: enclose n with backticks Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --------- Co-authored-by: Juri Dispan <juri.dispan@posteo.net> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
1.1 KiB
1.1 KiB
jello
A command-line JSON processor using Python syntax. More information: https://github.com/kellyjonbrazil/jello.
- Pretty-print JSON or JSON-Lines data from
stdin
tostdout
:
cat {{file.json}} | jello
- Output a schema of JSON or JSON Lines data from
stdin
tostdout
(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
tostdout
:
cat {{file.json}} | jello -l
- Output the first element in JSON or JSON-Lines data from
stdin
tostdout
:
cat {{file.json}} | jello _[0]
- Output the value of a given key of each element in JSON or JSON-Lines data from
stdin
tostdout
:
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
andkey_name2
):
cat {{file.json}} | jello '{"{{key1}}": _.{{key_name1}}, "{{key_name}}": _.{{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}}'