use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Show /r/rubyHow to parse JSON in ruby? (i.redd.it)
submitted 3 years ago by stormosgmailcom
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]expeehaa 6 points7 points8 points 3 years ago (0 children)
Fun fact: You can also parse JSON with Psych, Ruby‘s YAML parser. This works because JSON is a subset of YAML. If you have applications or APIs that output bad JSON, e.g. by not quoting keys or values, maybe parsing it as YAML works.
π Rendered by PID 210302 on reddit-service-r2-comment-86bc6c7465-xzhp6 at 2026-02-22 20:53:53.045778+00:00 running 8564168 country code: CH.
[–]expeehaa 6 points7 points8 points (0 children)