← Standard library

JsonParseError

error JsonParseError
import JsonParseError from Wax;

A JSON parse failure with a structured reason and zero-based UTF-8 byte position.

Json.wax:927

Inherits from Error. Follow these links for inherited members.

Members

kindfield

public readonly JsonParseErrorKind kind

The parse failure category.

Json.wax:931

positionfield

public readonly int32 position

Zero-based UTF-8 byte position of the failure.

Json.wax:935

constructorconstructor

public constructor (JsonParseErrorKind kind, int32 position)

Creates the structured error and formats its byte position and category into the message.

Json.wax:940