Introduction
Introduction Statistics Contact Development Disclaimer Help
jaq.1 - json2tsv - JSON to TSV converter
git clone git://git.codemadness.org/json2tsv
Log
Files
Refs
README
LICENSE
---
jaq.1 (1132B)
---
1 .Dd April 17, 2023
2 .Dt JAQ 1
3 .Os
4 .Sh NAME
5 .Nm jaq
6 .Nd json2tsv awk query, a json2tsv convenience wrapper shellscript
7 .Sh SYNOPSIS
8 .Nm
9 .Op Fl n
10 .Op Fl u
11 .Ar awk expressions...
12 .Sh DESCRIPTION
13 .Nm
14 reads JSON data from stdin.
15 The parsed nodes in the JSON data are then passed to
16 .Xr awk 1
17 in the format:
18 .Bd -literal
19 nodename<FIELD SEPARATOR>type<FIELD SEPARATOR>value<RECORD SEPARATOR>
20 .Ed
21 .Pp
22 See the OUTPUT FORMAT section of
23 .Xr json2tsv 1
24 for a more detailed explanation.
25 .Pp
26 The options are as follows:
27 .Bl -tag -width Ds
28 .It Fl n
29 Show the indices for array types (by default off).
30 .It Fl u
31 Unbuffered: flush output after printing each value (by default off).
32 .El
33 .Pp
34 The options
35 .Fl r
36 and
37 .Fl F Ar '\ex1f'
38 and
39 .Fl R Ar '\ex1e'
40 are passed to
41 .Xr json2tsv 1 .
42 .Sh ENVIRONMENT VARIABLES
43 .Bl -tag -width Ds
44 .It Ev LC_ALL
45 This variable is set to the "C"
46 .Xr locale 1
47 for the
48 .Xr awk 1
49 program.
50 .El
51 .Sh EXIT STATUS
52 .Ex -std
53 .Sh EXAMPLES
54 .Bd -literal
55 echo '{"url":"https://codemadness.org/"}' | \e
56 jaq '$1 == ".url" { print $3 }'
57 .Ed
58 .Sh SEE ALSO
59 .Xr awk 1 ,
60 .Xr json2tsv 1
61 .Sh AUTHORS
62 .An Hiltjo Posthuma Aq Mt [email protected]
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.