Sample JWT — Decoded (JSON)
The decoded header and payload of the sample JWT as JSON, alongside the public signing secret and algorithm — the ground truth for checking a JWT decoder's output.
{
"header": {
"alg": "HS256",
"typ": "JWT"
},
"payload": {
"sub": "sample-user-01",
"name": "Example User",
"role": "demo",
"iss": "novus-examples",
"iat": 1767225600,
"exp": 1798761600,
"note": "SAMPLE TOKEN \u2014 signed with a public example secret. Not for production."
},
"signatureAlgorithm": "HS256",
"secret": "a-string-secret-at-least-256-bits-long",
"note": "Sample only. This token is signed with a public secret so it can be verified; it grants nothing and must never be used in production."
}
Specifications
- Format
- JSON
- Contents
- decoded JWT header + payload + secret
- Label
- SAMPLE ONLY
What is a .json file?
JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format representing objects, arrays, strings, numbers, booleans, and null. It is language-independent, human-readable, and the dominant format for web APIs and configuration. It requires a single well-formed root value.
How to use this file
Use an example JSON file to test parsers and serializers, schema validation, Unicode and number-precision handling, and API request or response processing.
Related files
- ipynbJupyter Notebook (IPYNB)A valid Jupyter notebook (nbformat 4.5) with markdown cells, code cells, and real outputs (stdout stream and an execute result) — for testing notebook parsers, nbconvert, and JSON tooling.
- jsonDeeply Nested JSONA deeply nested JSON document with objects inside arrays inside objects — for testing recursive parsing and path access.
- drawiodraw.io Diagram (XML)A draw.io (diagrams.net) diagram in its native mxGraphModel XML — a small flowchart — for testing draw.io import/export and XML parsing of diagram files.
- jsonFlat JSON ArrayA flat JSON array of ten simple objects — the baseline case for JSON parsing and mapping.
- geojsonGeoJSON SampleA GeoJSON FeatureCollection with a point, a line, and a polygon — for testing map tools and geo importers.
- dotGraphviz DOT GraphA Graphviz DOT directed graph describing a fulfilment pipeline — for testing DOT parsing, Graphviz rendering, and DOT-to-SVG/PNG conversion.
Generated by generation/q8_extras.py. Free for any use, no attribution required — license.