Versions in this module Expand all Collapse all v1 v1.6.5 Jan 26, 2023 Changes in this version + const MaxDepth + func Equals(a, b string) error + func EqualsBytes(a, b []byte) (err error) + func Exists(data []byte, keys ...string) bool + func GetBool(data []byte, keys ...string) bool + func GetBytes(data []byte, keys ...string) []byte + func GetFloat64(data []byte, keys ...string) float64 + func GetInt(data []byte, keys ...string) int + func GetString(data []byte, keys ...string) string + func Validate(s string) error + func ValidateBytes(b []byte) error + type Arena struct + func (a *Arena) NewArray() *Value + func (a *Arena) NewFalse() *Value + func (a *Arena) NewNull() *Value + func (a *Arena) NewNumberFloat64(f float64) *Value + func (a *Arena) NewNumberInt(n int) *Value + func (a *Arena) NewNumberString(s string) *Value + func (a *Arena) NewObject() *Value + func (a *Arena) NewString(s string) *Value + func (a *Arena) NewStringBytes(b []byte) *Value + func (a *Arena) NewTrue() *Value + func (a *Arena) Reset() + type ArenaPool struct + func (ap *ArenaPool) Get() *Arena + func (ap *ArenaPool) Put(a *Arena) + type Object struct + func (o *Object) Del(key string) + func (o *Object) Get(key string) *Value + func (o *Object) Len() int + func (o *Object) MarshalTo(dst []byte) []byte + func (o *Object) Set(key string, value *Value) + func (o *Object) String() string + func (o *Object) Visit(f func(key []byte, v *Value)) + type Parser struct + func (p *Parser) Parse(s string) (*Value, error) + func (p *Parser) ParseBytes(b []byte) (*Value, error) + type ParserPool struct + func (pp *ParserPool) Get() *Parser + func (pp *ParserPool) Put(p *Parser) + type Scanner struct + func (sc *Scanner) Error() error + func (sc *Scanner) Init(s string) + func (sc *Scanner) InitBytes(b []byte) + func (sc *Scanner) Next() bool + func (sc *Scanner) Value() *Value + type Type int + const TypeArray + const TypeFalse + const TypeNull + const TypeNumber + const TypeObject + const TypeString + const TypeTrue + func (t Type) String() string + type Value struct + func MustParse(s string) *Value + func MustParseBytes(b []byte) *Value + func Parse(s string) (*Value, error) + func ParseBytes(b []byte) (*Value, error) + func (v *Value) Array() ([]*Value, error) + func (v *Value) Bool() (bool, error) + func (v *Value) Del(key string) + func (v *Value) Exists(keys ...string) bool + func (v *Value) Float64() (float64, error) + func (v *Value) Get(keys ...string) *Value + func (v *Value) GetArray(keys ...string) []*Value + func (v *Value) GetBool(keys ...string) bool + func (v *Value) GetFloat64(keys ...string) float64 + func (v *Value) GetInt(keys ...string) int + func (v *Value) GetInt64(keys ...string) int64 + func (v *Value) GetObject(keys ...string) *Object + func (v *Value) GetStringBytes(keys ...string) []byte + func (v *Value) GetUint(keys ...string) uint + func (v *Value) GetUint64(keys ...string) uint64 + func (v *Value) Int() (int, error) + func (v *Value) Int64() (int64, error) + func (v *Value) MarshalTo(dst []byte) []byte + func (v *Value) Object() (*Object, error) + func (v *Value) Set(key string, value *Value) + func (v *Value) SetArrayItem(idx int, value *Value) + func (v *Value) String() string + func (v *Value) StringBytes() ([]byte, error) + func (v *Value) Type() Type + func (v *Value) Uint() (uint, error) + func (v *Value) Uint64() (uint64, error)