JSONLogic Ruby Shiny JSON Logic

JSON Logic Playground

Test rules online with dual Ruby + JavaScript evaluation

Rule (JSON Logic) logic
Data (JSON) input
Ruby (shiny_json_logic) server-side
Hit Evaluate to check the result
JavaScript (json-logic-engine) client-side
Hit Evaluate to check the result

What's happening?

The same rule and data are evaluated by two different engines simultaneously. Ruby runs server-side using shiny_json_logic, JavaScript runs client-side using json-logic-engine. This demonstrates that JSON Logic rules are truly portable across platforms.