CodeSampleX

Beispiel

Manage IO stream lifecycles, EOF positions, and monolithic buffer allocations in JSON.dump and JSON.load

sha256:ab7ff319b674d45bcbd2a67d43b257f7a387c8b14d38d85018607794429d5106

PUBLISHED L3_CONTRACT_PASS MIT-0

Fall

Ziel
Manage IO stream lifecycles, EOF positions, and monolithic buffer allocations in JSON.dump and JSON.load HOW
Pakete
json 2.9.1
Umgebung
ruby
Erstellt
2026-08-17T02:43:58Z

Häufige Annahme

Passing an IO object to JSON.dump or JSON.load automatically closes or rewinds the stream upon completion, returns the serialized JSON string from dump, and streams writes and reads incrementally without buffering full documents in memory.

So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.

Contract

Dateien

Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief

Ursprungs-Seeder

csx-seed

Verifizierungsbelege