Skip to content
Novus Examples
json825 B

SAMPLE JWS — Flattened JSON Serialization

The single-signature flattened JSON form of the exact same RS256 token shipped in compact serialization. Both encodings must verify to the identical payload, which is the round-trip this pair is for.

Preview — first 9 linesjson
{
  "payload": "eyJpc3MiOiJodHRwczovL2lzc3Vlci5wa2kuc2FtcGxlLmV4YW1wbGUvIiwic3ViIjoidXNlci1zYW1wbGUtMDAwMSIsImF1ZCI6Im5vdnVzLXA3LXNhbXBsZS1hcGkiLCJpYXQiOjE3NjcyMjU2MDAsIm5iZiI6MTc2NzIyNTYwMCwiZXhwIjoyMDgyNzU4NDAwLCJqdGkiOiJub3Z1cy1wNy1zYW1wbGUtMDAwMSIsIm5hbWUiOiJTYW0gUml2ZXJhIChTQU1QTEUpIiwic2NvcGUiOiJyZWFkOnNhbXBsZSJ9",
  "protected": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Im5vdnVzLXA3LXJzYS0yMDI2In0",
  "header": {
    "kid": "novus-p7-rsa-2026"
  },
  "signature": "QjfU_T3uAz6HOpDAuyTWKA83R0TMcbPIFr02PAt2DLr5AwG7ST9ILBsZGKBWBmCd943WbdXvdgu9n2G4csGaCThIHKiB5QzCI8RL-Wm8rOJOT4nGt5FxkKla2WN14EVImoe8Ah73mPscRc60DNlaJ85GbUiYdlFLb-u18yeovIlf--x8kKVJjlZWAVm3_CcMTWzkjvnOptzmII6wZWq6Sf5xlXVW36I4OsnlQfTa7q1H0tzYaZb8bOJrYStYwXBSjJhB5dOvn81kKo59PEVPlSI7xa0HdKJ9ca64nF-4XXiIoNV7rLA6STpjOoPcNDO_gW3XhYcfpXgcyCmnirr_hA"
}

Specifications

Serialization
JWS Flattened JSON (RFC 7515 Section 7.2.2)
Signatures
1
Alg
RS256
Equivalent To
the p7 compact RS256 token
Sample Only
true
Seed
70117

Testing contract

Expected to pass
Scenario
Verify this document and the compact RS256 token and compare the recovered payloads.
Expected result
Both serializations verify with the same key and decode to byte-identical payloads.

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.

How to use this file for testing

“SAMPLE JWS — Flattened JSON Serialization” is a deterministic Novus Examples fixture for JWT / JWKS testing, API testing. Unsigned and SAMPLE-signed JWT variants plus JWKS documents — published sample material only, for auth parser tests.

Documented properties for this file: seed 70117. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

This is published, SAMPLE-only security material — never a real secret. Point certificate, key, or token parsers at it, test PEM/DER decoding and PKCS handling, and confirm your tooling reads the documented fields; any sample password is printed on this page.

These JSON fixtures are synthetic SAMPLE auth or tool-call shapes for harnesses — never production secrets or live tokens. Validate schema fields and alg variants against the documented role.

Code examples

import json

with open("jws-flattened-json.json") as f:
    data = json.load(f)
print(type(data), len(data))

Generated by generation/security_p7.py. Free for any use, no attribution required — license.