Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/core / / fromJsonSafeContentParts
Function: fromJsonSafeContentParts()
ts
function fromJsonSafeContentParts(parts): readonly MessageContent[];Defined in: packages/core/src/utils/binary-json.ts:305
Inverse of toJsonSafeContentParts. Accepts legacy corrupted payloads (numeric-key byte objects) and repairs them best-effort.
Parameters
| Parameter | Type |
|---|---|
parts | readonly WireMessageContent[] |
Returns
readonly MessageContent[]