unpack() function

Deserializes given input JSON string to corresponding JSON value object. On error will return empty object

Signature:

export declare function unpack(input?: string, logger?: AnyLogger): AnyJson;

Parameters

Parameter

Type

Description

input

string

(Optional) string to deserialize

logger

AnyLogger

(Optional) logger to handle errors logging with

Returns:

AnyJson

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.