Ruby implementation of Json Logic #37
tavrelkate
started this conversation in
Show and tell
Replies: 2 comments 8 replies
-
Hey there! We'd love to include you in the list of implementations in the JSON Logic Community Organization! Sending an invite now! Here's a list of some of the accepted proposals & tests for json-logic core: https://github.com/json-logic/.github/blob/main/ACCEPTED_PROPOSALS.md These do introduce some new operators, but all behavior in JSON Logic Core should be backwards compatible with the original tests.json. |
Beta Was this translation helpful? Give feedback.
7 replies
-
Your humanize companion library seems interesting. Are you using it in any specific usecase, or just a POC? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team!
I’ve created a Ruby implementation of Json Logic: json-logic-rb. I wired it to the official tests.json suite and it passes 100%.
Why another implementation?
I noticed that Ruby didn’t have a well-organized to be extendable easily, actively maintained option lately, while Ruby is a great fit to spread and apply Json Logic efficiently across many services and companies.
My goals were (1) cover official cases providing all core operations and (2) to provide a clean extension interface so users can add custom operators without waiting for a new gem (library) release. This makes maintenance easier and lets pepole extend behavior locally, then propose it upstream.
I’d love to:
Have the gem listed on the official Json Logic site and/or “other implementations” to gather feedback, and participate in a community-driven spec and compatibility table to reduce gaps.
I also published a tiny companion: json-logic-rb-humanizable — translate Json Logic rules into readable sentences. It’s been useful for explaining rules to non-dev stakeholders and I think it can bring a value too.
Happy to align behavior or discuss implementation details.
Repo: https://github.com/tavrelkate/json-logic-rb
Gem: 0.1.0.beta1 October 06, 2025
Thanks for keeping the ecosystem going.
Beta Was this translation helpful? Give feedback.
All reactions