RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in