Skip to content

Commit

Permalink
Update docs to mention supporting nested JSON
Browse files Browse the repository at this point in the history
Closes #64
  • Loading branch information
rcoh authored Jan 27, 2019
1 parent 921dcd0 commit cb6b32f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ These operators have a 1 to 1 correspondence between input data and output data.

##### JSON
`json [from other_field]`: Extract json-serialized rows into fields for later use. If the row is _not_ valid JSON, then it is dropped. Optionally, `from other_field` can be
specified.
specified. Embedded JSON isn't natively supported, but you can use the `json from` to reparse nested keys (see examples).

*Examples*:
```agrind
Expand All @@ -73,6 +73,14 @@ specified.
```agrind
* | parse "INFO *" as js | json from js
```

Given input like:
```
{"key": "blah", "nested_key": {"this": "that"}}
```
```agrind
* | json | json from nested_key | fields this
```
![json.gif](/screen_shots/json.gif)

##### Parse
Expand Down

0 comments on commit cb6b32f

Please sign in to comment.