CodeSampleX

Sample

Distinguish JSON.dump Marshal-compatible default options and argument dispatch from JSON.generate strict limits

sha256:4c386a5b763c3a3e2bbc668a77a917939638feb691e08cb081805758360988ae

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Distinguish JSON.dump Marshal-compatible default options and argument dispatch from JSON.generate strict limits HOW
Packages
json 2.9.1
Environment
ruby
Created
2026-08-17T02:43:30Z

Commonly assumed

JSON.dump is a direct alias for JSON.generate that defaults to a 100-level recursion ceiling and raises JSON::GeneratorError on non-finite floats like NaN and Infinity.

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