Skip to content

dorianmariecom/dorian-json-map

Repository files navigation

dorian-json-map

Map JSON to JSON with a Ruby snippet.

Install

gem install dorian-json-map

Also included in the aggregate gem:

gem install dorian

Usage

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

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

Notes

  • Arrays map each element. Hashes map each key/value pair. The final JSON is pretty-printed.

Examples

Increment array items

echo '[1,2,3]' | json-map "it = it + 1"

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors