nyx/tests/dynamic_fixtures/json_parse/python/benign.py

11 lines
289 B
Python
Raw Permalink Normal View History

2026-06-05 10:16:30 -05:00
# Phase 11 (Track J.9) — Python JSON_PARSE benign control fixture.
#
# json.loads then merge into a fresh `dict` rather than mutating the
# shared sentinel, so the canary trap on `_SHARED` cannot fire.
import json
def run(value):
parsed = json.loads(value)
return dict(parsed)