strictjson

package
v1.45.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package strictjson validates bounded JSON without normalizing strings.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid_json")

ErrInvalid deliberately contains no caller-controlled text.

Functions

func Validate

func Validate(b []byte, budget Budget) error

Validate checks a complete JSON value before permissive typed decoding.

Types

type Budget

type Budget struct{ Bytes, Depth, Entries int }

Budget limits raw bytes, nesting and entries in each container.

Jump to

Keyboard shortcuts

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