Skip to main content

parse_canonical_json

Kind: Function
Domain: Scene and artifacts
Canonical import: from cadflow.scene import parse_canonical_json

Signature

def parse_canonical_json(data: 'bytes | bytearray | memoryview | str') -> 'Any'

Description

Parse JSON and require the input bytes to already be exact JCS bytes.

Parameters

NameTypeRequiredDefaultSource description
data'bytes | bytearray | memoryview | str'yes-Not explicitly described in the source docstring.

Returns

Type: 'Any'

The source docstring does not declare additional return semantics.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Behavior and constraints

  • Serialized data is intended to remain JSON-safe and should be schema-validated when crossing trust boundaries.

Import check

from cadflow.scene import parse_canonical_json

See also