Show HN: String#to_proc` to Help Traversing JSON
Category: library
Tags: ruby, json, query-language, data-traversal, library
Score: 6.3/10 (Innovation: 6, Technical: 6, Documentation: 8, Utility: 5)
Schmuck adds String#to_proc to Ruby, allowing JSON-like nested data paths to be written as strings and used as blocks. It provides a concise, Ruby-native alternative to jq, JSONPath, and similar query languages, with strict nil handling and support for arbitrary Ruby methods. The library is well-documented with clear examples and comparisons to existing tools.
Target audience: Ruby developers working with nested JSON or API responses
Repository: https://github.com/samleb/schmuck · Ruby · MIT · 2 stars
View on Hacker News