1GRON(1)                     General Commands Manual                    GRON(1)
2
3
4

NAME

6       gron - Transform JSON into discrete assignments to make it greppable
7

SYNOPSIS

9       gron [OPTIONS][FILE|URL|-]
10

DESCRIPTION

12       gron  transforms  JSON  into  discrete assignments to make it easier to
13       grep for what you want and see the absolute 'path' to it. It eases  the
14       exploration of APIs that return large blobs of JSON.
15
16

OPTIONS

18       -u, --ungron
19              Reverse the operation (turn assignments back into JSON)
20
21       -c, --colorize
22              Colorize output (default on tty)
23
24       -m, --monochrome
25              Monochrome (don't colorize output)
26
27       -s, --stream
28              Treat each line of input as a separate JSON object
29
30       -k, --insecure
31              Disable certificate validation
32
33       -j, --json
34              Represent gron data as JSON stream
35
36       --no-sort
37              Don't sort output (faster)
38
39       --version
40              Print version information
41
42

EXIT CODES

44       0      OK
45
46       1      Failed to open file
47
48       2      Failed to read input
49
50       3      Failed to form statements
51
52       4      Failed to fetch URL
53
54       5      Failed to parse statements
55
56       6      Failed to encode JSON
57
58

EXAMPLES

60       gron /tmp/apiresponse.json
61
62       gron http://jsonplaceholder.typicode.com/users/1
63
64       curl -s http://jsonplaceholder.typicode.com/users/1 | gron
65
66       gron  http://jsonplaceholder.typicode.com/users/1 | grep company | gron
67       --ungron
68
69
70
71                                                                       GRON(1)
Impressum