serializeScalarSketchJson(
sketch):ScalarSketchJson
Defined in: packages/scalar-sketch/src/serialization/json.ts:69
Serialize exact scalar-sketch state into the stable logical JSON shape. Object keys are inserted in the documented canonical order, while unsigned 64-bit values use canonical decimal strings.
Parameters
Section titled “Parameters”sketch
Section titled “sketch”Returns
Section titled “Returns”Throws
Section titled “Throws”With FOREIGN_STRUCTURE or
WRONG_FAMILY when the value was not produced by this package.