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
- Serializing a single-element jwt.ClaimStrings audience produces a JSON array by default because jwt.MarshalSingleStringAsArray is true.
- Setting jwt.MarshalSingleStringAsArray to false forces a single-element jwt.ClaimStrings audience to serialize as a JSON string.
Files
- NOTES.md
- config_test.go
- csx.json
- go.mod
- go.sum
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-17 · ed25519:d91480838ac982c9