mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
9 lines
231 B
Ruby
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
|