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

jello

  • A command-line JSON processor using Python syntax.
    More information: <https://github.com/kellyjonbrazil/jello>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy