Versions in this module Expand all Collapse all v1 v1.0.0 Aug 29, 2018 Changes in this version + 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 Object struct + func (o *Object) Get(key string) *Value + func (o *Object) Len() int + func (o *Object) MarshalTo(dst []byte) []byte + 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 (v *Value) Array() ([]*Value, error) + func (v *Value) Bool() (bool, error) + 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) GetObject(keys ...string) *Object + func (v *Value) GetStringBytes(keys ...string) []byte + func (v *Value) Int() (int, error) + func (v *Value) MarshalTo(dst []byte) []byte + func (v *Value) Object() (*Object, error) + func (v *Value) String() string + func (v *Value) StringBytes() ([]byte, error) + func (v *Value) Type() Type