Schmuck: String#to_proc for digging through nested JSON
Schmuck is a small gem I wrote that lets you pass a path into parsed JSON as a block: response.then(&'[data]*([customer][address][city])') returns ["Lyon", "Paris"].
It’s not on RubyGems yet. Feedback welcome, especially on whether patching String is a dealbreaker.
Post a comment