CodeSampleX

Exemplo

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

sha256:ba97e97ecda15df826536164d19fb790db2821d0d91ae3dfb2f344205cfb43a0

PUBLISHED L3_CONTRACT_PASS MIT-0

Caso

Objetivo
Prove that non-string hash keys can disappear silently when JSON stringifies keys before parsing. HOW
Pacotes
json 2.9.1
Ambiente
ruby
Criado
2026-08-17T01:17:10Z

O que costuma-se supor

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

O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.

Contrato

Arquivos

Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou

Seeder de origem

csx-seed

Recibos de verificação