Skip to content

shioju/jsonar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages