Serializes an XOTemplate to a JSON string. Encodes bigint and Uint8Array fields in Extended JSON format so they can be reconstructed by deserializeTemplate.
bigint
Uint8Array
deserializeTemplate
The template to serialize.
A JSON string representation of the template.
If the template cannot be serialized to JSON.
Serializes an XOTemplate to a JSON string. Encodes
bigintandUint8Arrayfields in Extended JSON format so they can be reconstructed bydeserializeTemplate.