CodeSampleX

示例

Distinguish JSON.parse! relaxed parsing from JSON.parse strict limits, load explicit json/add core additions for bidirectional serialization, and forward generator State through custom to_json methods

sha256:bc062acc906536678976cf1c339f352acd1b7ab93a8126083d2e995f58c8816b

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Distinguish JSON.parse! relaxed parsing from JSON.parse strict limits, load explicit json/add core additions for bidirectional serialization, and forward generator State through custom to_json methods HOW
json 2.9.1
环境
ruby
创建时间
2026-08-17T02:43:07Z

常见的想当然

JSON.parse! is an exception-raising strict mode of JSON.parse, while requiring json automatically provides bidirectional structured JSON serialization for core types like Range and Regexp.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执