Skip to content

dorianmariecom/dorian-json-all

Repository files navigation

dorian-json-all

Run one Ruby snippet against the whole JSON value.

Install

gem install dorian-json-all

Also included in the aggregate gem:

gem install dorian

Usage

json-all [file ...] "ruby code"

Run json-all -h for generated option details and json-all -v for the installed version.

Notes

  • Sets it to the parsed JSON value converted to deep structs.

Examples

Print an array item

echo '[1,2,3]' | json-all "puts it[1]"

Output:

2

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors