Help us shape the future of Go! Take the 2026 Go Developer Survey

jsonparse

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package jsonparse reports ECMAScript JSON.parse syntax errors for rejected JSON text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyntaxError

func SyntaxError(input []byte) []uint16

SyntaxError returns the message of the SyntaxError V8's JSON.parse throws for input, in UTF-16 units, or nil when input parses. Callers own validation and call it only for rejected JSON; positions and excerpts count UTF-16 units.

func Validate

func Validate(input []byte) error

Validate returns the error JSON.parse throws for input, with V8's message, or nil when input parses.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL