You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Canonical samples downloaded from https://json-stat.org/samples/ and synthetic
fixtures written for jsonstat-go. Each fixture is a valid JSON-stat 2.0
document (except bundle-pre2.0.json, which is intentionally pre-2.0 to
exercise decode-only tolerance). See wiki/sample-files.md
for the upstream descriptions of the canonical files.
Canonical samples (from json-stat.org)
File
Class
Value
Status
Notes
oecd.json
dataset
dense
object
Main features; 3 dims (concept/area/year); size [1,36,12]; roles all three.
canada.json
dataset
dense
string
Single-dataset variant; status as uniform string.
oecd-canada-col.json
collection
dense
mixed
Collection embedding two datasets (OECD + Canada); link.item.
collection.json
collection
n/a
n/a
The canonical dataset collection.
order.json
dataset
dense
—
Reference for row-major "what does not change, first" ordering.
galicia.json
dataset
dense
—
Six dimensions — many-dimension traversal.
hierarchy.json
dataset
sparse
—
category.child hierarchy + sparse value object.
us-gsp.json
dataset
dense
—
Metric role + multiple units (decimals/symbol/position).
us-unr.json
dataset
dense
—
Rich mapping tests (US counties).
Synthetic fixtures (written for jsonstat-go)
File
Class
Value
Status
Purpose
status-array.json
dataset
dense
array
Exercises the array status form ("status": ["a","a","m",...]). Includes one null value to verify missing-cell handling.
sparse.json
dataset
sparse
object
Minimal sparse cube; combines sparse value object with sparse status object.
dimension-only.json
dimension
n/a
n/a
Exercises the dimension response class (no value/size in the usual cube sense).
bundle-pre2.0.json
(bundle)
dense
—
Pre-2.0 bundle: a map of datasets keyed by id. Used to verify decode-only tolerance — must never be produced on encode.
Regenerating the canonical samples
forfin oecd canada order galicia hierarchy us-gsp us-unr oecd-canada-col collection;do
curl -fsSL "https://json-stat.org/samples/${f}.json" -o "${f}.json"done