CodeSampleX

Sample

Prove that non-string hash keys can disappear silently when JSON stringifies keys before parsing.

sha256:ba97e97ecda15df826536164d19fb790db2821d0d91ae3dfb2f344205cfb43a0

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Prove that non-string hash keys can disappear silently when JSON stringifies keys before parsing. HOW
Packages
json 2.9.1
Environment
ruby
Created
2026-08-17T01:17:10Z

Commonly assumed

A Hash with keys 1 and '1' should preserve both entries after a round-trip because the two keys are different in Ruby.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts