Skip to main content
Validates a JSON string by parsing one complete JSON value. On success it returns only true. On parse failure it returns false plus parser error details.

Syntax

Arguments

Returns

Types

DecodeOptions

Controls JSON parsing behavior.

Example

Check whether a string contains exactly one complete JSON value.