Skip to main content
Attempts to parse a JSON string like json.decodeSafe and returns status values for parse errors.

Syntax

Arguments

Returns

Types

DecodeOptions

Controls JSON parsing behavior.

Example

Decode JSON with status returns using the json.decodeSafe-compatible alias.