jsonparser

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	// String marshals the node into a json string.
	String() (string, error)
	// StrictString returns the string value of a string-type node.
	// For other type nodes, it returns an error.
	StrictString() (string, error)
	// Get returns the child node of a object-type node by the given key.
	Get(string) Node
	// Index returns the child node of a array-type node by the given index.
	Index(int) Node
	// SetString sets the string value of a string-type node.
	SetString(string)
}

type Parser

type Parser interface {
	// Parse parses the given json string into a node.
	Parse(string) (Node, error)
}
var Fastjson Parser = &fastjsonParser{}

Jump to

Keyboard shortcuts

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