jsonvalid

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Overview

Package jsonvalid reports whether a byte slice is one valid JSON text, with the verdict of the encoding/json scanner that session files were first checked with: the RFC 8259 grammar, no control character in a string, any \u escape (a lone surrogate included), bytes of any encoding inside a string, and nesting of at most 10,000 levels. It checks in a single pass without the scanner's per-byte state machine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Valid

func Valid(data []byte) bool

Valid reports whether data is exactly one JSON value surrounded by optional white space (space, tab, carriage return, line feed).

Types

This section is empty.

Jump to

Keyboard shortcuts

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