-
-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Please let me know by reactions/voting or comments if a CLI version of JSON Machine would be useful to have. Thanks.
jm
command would take a JSON stream from stdin
, and send items one by one to stdout
wrapped in a single-item JSON object encoded as {key: value}
.
Possible usage:
$ wget <big list of users to stdout> | jm --pointer=/results
{"0": {"name": "Frank Sinatra", ...}}
{"1": {"name": "Ray Charles", ...}}
...
Another idea might be to wrap the item in a JSON list instead of an object, like so:
$ wget <big list of users to stdout> | jm --pointer=/results
[0, {"name": "Frank Sinatra", ...}]
[1, {"name": "Ray Charles", ...}]
...
mehrna and pkoppsteinmehrna
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Projects
Status
Inbox