-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Max Murphy-Skvorzov
committed
Nov 26, 2015
1 parent
6f39381
commit 93048d7
Showing
4 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
jline-json2jl | ||
============= | ||
|
||
Convert a JSON file into JSON lines | ||
|
||
## Command line: | ||
|
||
jline-json2jl data.json # Emit the entire JSON on one line | ||
jline-json2jl -a data.json # If the JSON is an array, print each entry as a JSON line. | ||
# If the JSON is a dictionary, print each value. | ||
jline-json2jl -a --path=foo.bar package.json | ||
# Get an array from inside the JSON and | ||
# print each entry as a line. | ||
# --path may be used with anything. | ||
jline-json2jl -d data.json # Print each key value pair as a JSON line. {key:.., val:..} | ||
jline-json2jl -k data.json # Print the keys of a dictionary. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters