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

jsonutil

package
v0.39.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectMemberRange

func ObjectMemberRange(data []byte, wanted string) (start, end int, found bool, err error)

ObjectMemberRange validates a JSON document and returns the byte range of the top-level member value with the requested decoded key. Ranges alias data.

func Parse

func Parse(data []byte) (any, error)

Parse preserves number tokens and rejects ambiguous or excessively nested JSON.

func ValidateUnicodeEscapes

func ValidateUnicodeEscapes(data []byte) error

ValidateUnicodeEscapes rejects escapes that encoding/json would replace with U+FFFD. It does not replace JSON syntax validation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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