parse_strict_json
Kind: Function
Domain: Scene and artifacts
Canonical import: from cadflow.scene import parse_strict_json
Signature
def parse_strict_json(data: 'bytes | bytearray | memoryview | str') -> 'Any'
Description
Parse one strict UTF-8 JSON value while rejecting duplicate keys.
Parse one strict UTF-8 JSON value while rejecting duplicate keys.
BOMs, invalid UTF-8, comments, non-finite numbers, and trailing tokens are rejected. The returned value is not normalized.
Parameters
| Name | Type | Required | Default | Source 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_strict_json