Skip to content

ZenFG TypeScript API / snapshot / root / parseFrameGraphSnapshot

Function: parseFrameGraphSnapshot()

parseFrameGraphSnapshot(text): FrameGraphSnapshotDecodeResult

Defined in: packages/snapshot/src/codec.ts:217

Parses JSON text and then applies the same migration and validation pipeline as decodeFrameGraphSnapshot.

Parameters

text

string

Returns

FrameGraphSnapshotDecodeResult

Remarks

Invalid JSON is represented by an invalid-json issue. This function does not throw for document or validation errors.

Open source / MIT licensed