CodeSampleX

Exemple

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

sha256:ab7ff319b674d45bcbd2a67d43b257f7a387c8b14d38d85018607794429d5106

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Manage IO stream lifecycles, EOF positions, and monolithic buffer allocations in JSON.dump and JSON.load HOW
Paquets
json 2.9.1
Environnement
ruby
Créé
2026-08-17T02:43:58Z

Ce que l'on suppose souvent

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.

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification