CodeSampleX

Sample

Single-element ClaimStrings serializes to a JSON array by default unless MarshalSingleStringAsArray is disabled

sha256:34fa126c60af3e09acdc46d6ed12ef1b3cc847958e3632899bcd7e3f41ebf83e

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Single-element ClaimStrings serializes to a JSON array by default unless MarshalSingleStringAsArray is disabled HOW
Packages
github.com/golang-jwt/jwt/v5 5.3.1
Environment
go
Created
2026-08-17T01:27:52Z

Commonly assumed

A single-element jwt.ClaimStrings slice serializes to a JSON string value by default.

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