Skip to content

Commit

Permalink
DOCS: fix wrong flag for conditional formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Heflin committed Jun 9, 2014
1 parent b021665 commit 0771be9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/json.1.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/json.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ or more slower for large inputs. See the [COMPATIBILITY][] section below.

## FEATURE: Conditional filtering

Use the `-e CODE` option to run JavaScript code ending with a statement
Use the `-c CODE` option to run JavaScript code ending with a statement
returning a boolean to filter the input JSON.

$ echo '[{"age":38},{"age":4}]' | json -e 'this.age > 21'
Expand Down
2 changes: 1 addition & 1 deletion man/man1/json.1
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ The given CODE is executed in a function bound to the input object (i\.e\. \fBth
\fICompatibility note:\fR In versions before v9 \fB\-e CODE\fR used an alternate implementation (with slightly different semantics for the CODE)\. It is still supported for backward compatibility by using the \fBJSON_EXEC=vm\fR environment variable\. However it is deprecated because it can cause processing to be \fI10x\fR or more slower for large inputs\. See the \fICOMPATIBILITY\fR section below\.
.
.SH "FEATURE: Conditional filtering"
Use the \fB\-e CODE\fR option to run JavaScript code ending with a statement returning a boolean to filter the input JSON\.
Use the \fB\-c CODE\fR option to run JavaScript code ending with a statement returning a boolean to filter the input JSON\.
.
.IP "" 4
.
Expand Down

0 comments on commit 0771be9

Please sign in to comment.