Project

jsonar

0.0
No commit activity in last 3 years
No release in over 3 years
Command-line tool for searching in JSON files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.6

Runtime

 Project Readme

Jsonar

Build Status

Jsonar is a command-line tool for searching into JSON files.

For example, given the below JSON file:

[
    { "name": "apple",
      "color": "red"
    },
    { "name": "grape",
      "color": "green"
    },
    { "name": "strawberry",
      "color": "red"
    }
]

a search for red would display the below result (formatted with awesome_print):

[
    [0] {
         "name" => "apple",
        "color" => "red"
    },
    [1] {
         "name" => "strawberry",
        "color" => "red"
    }
]

Installation

Jsonar is available on rubygems.org and can be easily installed with

$ gem install jsonar

Usage

$ jsonar path-to-json-file [paths-to-more-json-files]...

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/shioju/jsonar.

License

The gem is available as open source under the terms of the MIT License.