Documentation ¶
Index ¶
- Constants
- func ParseFn(b []byte, fn func(*Node) error) error
- type Node
- func (node *Node) Array() ([]*Node, error)
- func (node *Node) Bool() (bool, error)
- func (node *Node) Err() error
- func (node *Node) Float64() (float64, error)
- func (node *Node) Get(key string) *Node
- func (node *Node) Int() (int, error)
- func (node *Node) Int64() (int64, error)
- func (node *Node) ReleaseParseCache()
- func (node *Node) SetErr(err error)
- func (node *Node) String() (string, error)
- func (node *Node) Type() Type
- func (node *Node) Uint() (uint, error)
- func (node *Node) Uint64() (uint64, error)
- type Object
- type Parser
- type ParserPool
- type Type
- type Value
Constants ¶
View Source
const MaxDepth = 1000
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) ReleaseParseCache ¶
func (node *Node) ReleaseParseCache()
type ParserPool ¶
type ParserPool struct {
// contains filtered or unexported fields
}
func (*ParserPool) Get ¶
func (pp *ParserPool) Get() *Parser
func (*ParserPool) Put ¶
func (pp *ParserPool) Put(p *Parser)
type Type ¶
type Type int
Type represents JSON type.
const ( // TypeNull is JSON null. TypeNull Type = 0 // TypeObject is JSON object type. TypeObject Type = 1 // TypeArray is JSON array type. TypeArray Type = 2 // TypeString is JSON string type. TypeString Type = 3 // TypeNumber is JSON number type. TypeNumber Type = 4 // TypeTrue is JSON true. TypeTrue Type = 5 // TypeFalse is JSON false. TypeFalse Type = 6 TypeNil Type = 8 )
Click to show internal directories.
Click to hide internal directories.