nyx/tests/dynamic_fixtures/json_parse/ruby/benign.rb
2026-06-05 10:16:30 -05:00

9 lines
231 B
Ruby

# Phase 11 (Track J.9) — Ruby JSON_PARSE benign control fixture.
#
# JSON.parse then merge into a freshly allocated `Hash`, so the
# canary trap on `SHARED` cannot fire.
require 'json'
def run(value)
JSON.parse(value).dup
end