Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
odnoletkov
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
odnoletkov
4y ago
It's 'zero-class' representation – everything is a json stream. You can slurp any stream into an array by wrapping it with the `[]` operator: $ jq -n '[range(3)]' [ 0, 1, 2 ] Do
2.
▲
by
odnoletkov
4y ago
Repo author here, let me promote jq a bit – it's much more than a simple command-line JSON processor you know it for: * It is a generator-based language which means you operate streams of values rather than single values. Takes some ti