Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/json.1.html

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

10 changes: 10 additions & 0 deletions docs/json.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,16 @@ You can edit a file in place with `-I` and `-f FILE`:
"port": 8080
}

# add/update field that contains periods
$ json -I -f config.json -e 'this["field.with.periods"]="update"'
json: updated "config.json" in-place
$ cat config.json
{
"hostname": "127.0.0.1",
"port": 8080,
"field.with.periods": "update"
}

Some limitations. Only one file at a time:

$ json -I -f foo.json -f bar.json
Expand Down