serialize_record: Canonical UTF-8 JSON with sorted keys, no floats and no...

serialize_recordR Documentation

Canonical UTF-8 JSON with sorted keys, no floats and no executable objects

Description

Canonical UTF-8 JSON with sorted keys, no floats and no executable objects.

Usage

serialize_record(value)

Arguments

value

The value or typed record to validate, serialize or fingerprint.

Details

Expressions are sorted syntactic trees. Normalization changes bound names only, not logical content. Substitution avoids capture. A theory context is a declaration. Integers beyond 2^53-1 must use canonical decimal strings in ordinal terms. Serialization accepts bounded finite JSON data and never evaluates code. Typed deserialization validates against the current catalogue where applicable.

Input errors inherit from largecardinals_error and expose a code. No function publishes data or accesses the network.

Value

Canonical JSON text with deterministic object-key ordering and exact supported values.

Examples

largecardinals::serialize_record(theory_context())

largecardinals documentation built on Nov. 25, 2026, 5:09 p.m.