JsonCli
JSON command line tools.
Installation
Add this line to your application's Gemfile:
gem 'json_cli'
And then execute:
$ bundle
Or install it yourself as:
$ gem install json_cli
Usage
Join attributes where key is '_id'
$ cat logfile.json | json_cli left_join attribute.json -k _id
Unwind array or object
$ cat logfile.json | json_cli unwind -k tags
Select or ignore keys
$ cat logfile.json | json_cli select -k _id,tags
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request