package
0.0.0-20231026082336-871835fb94c6
Repository: https://github.com/goshafaq/sonic.git
Documentation: pkg.go.dev

# Functions

Loads parse all json into interface{}.
LoadsUseNumber parse all json into interface{}, with numeric nodes casted to json.Number.
NewAny creates a node of type V_ANY if any's type isn't Node or *Node, which stores interface{} and can be only used for `.Interface()`\`.MarshalJSON()`.
NewArray creates a node of type V_ARRAY, using v as its underlying children.
NewBool creates a node of type bool: If v is true, returns V_TRUE node If v is false, returns V_FALSE node.
NewBytes encodes given src with Base64 (RFC 4648), and creates a node of type V_STRING.
NewNull creates a node of type V_NULL.
NewNumber creates a json.Number node v must be a decimal string complying with RFC8259.
NewObject creates a node of type V_OBJECT, using v as its underlying children.
NewParser returns pointer of new allocated parser.
NewParser returns new allocated parser.
NewRaw creates a node of raw json.
No description provided by the author
NewString creates a node of type V_STRING.
Preorder decodes the whole JSON string and callbacks each AST node to visitor during preorder traversal.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrNotExist means both key and value doesn't exist.
ErrUnsupportType means API on the node is unsupported.

# Structs

No description provided by the author
ListIterator is specialized iterator for V_ARRAY.
No description provided by the author
ObjectIterator is specialized iterator for V_ARRAY.
No description provided by the author
No description provided by the author
No description provided by the author
Sequence represents scanning path of single-layer nodes.
No description provided by the author
VisitorOptions contains all Visitor's options.

# Interfaces

Visitor handles the callbacks during preorder traversal of a JSON AST.

# Type aliases

No description provided by the author