Versions in this module Expand all Collapse all v0 v0.5.1 Oct 11, 2026 v0.5.0 Oct 10, 2026 Changes in this version + const JSONTAGMASK + const JSONTAGOFFSET + const JSONVALUEMASK + const STRINGBUFBIT + const STRINGBUFMASK + const TagArrayEnd + const TagArrayStart + const TagBoolFalse + const TagBoolTrue + const TagEnd + const TagFloat + const TagInteger + const TagNop + const TagNull + const TagObjectEnd + const TagObjectStart + const TagRoot + const TagString + const TagUint + var ErrPathNotFound = errors.New("path not found") + var TagToType = [256]Type + func ParseNDStream(r io.Reader, res chan<- Stream, reuse <-chan *ParsedJson) + func SupportedCPU() bool + type Array struct + func (a *Array) AsFloat() ([]float64, error) + func (a *Array) AsInteger() ([]int64, error) + func (a *Array) AsString() ([]string, error) + func (a *Array) AsStringCvt() ([]string, error) + func (a *Array) AsUint64() ([]uint64, error) + func (a *Array) DeleteElems(fn func(i Iter) bool) + func (a *Array) FirstType() Type + func (a *Array) ForEach(fn func(i Iter)) + func (a *Array) Interface() ([]interface{}, error) + func (a *Array) Iter() Iter + func (a *Array) MarshalJSON() ([]byte, error) + func (a *Array) MarshalJSONBuffer(dst []byte) ([]byte, error) + type CompressMode uint8 + const CompressBest + const CompressDefault + const CompressFast + const CompressNone + type Element struct + Iter Iter + Name string + Type Type + type Elements struct + Elements []Element + Index map[string]int + func (e Elements) Lookup(key string) *Element + func (e Elements) MarshalJSON() ([]byte, error) + func (e Elements) MarshalJSONBuffer(dst []byte) ([]byte, error) + type FloatFlag uint64 + const FloatOverflowedInteger + func (f FloatFlag) Flags(more ...FloatFlag) FloatFlags + type FloatFlags uint64 + func (f FloatFlags) Contains(flag FloatFlag) bool + type Iter struct + func (i *Iter) Advance() Type + func (i *Iter) AdvanceInto() Tag + func (i *Iter) AdvanceIter(dst *Iter) (Type, error) + func (i *Iter) Array(dst *Array) (*Array, error) + func (i *Iter) Bool() (bool, error) + func (i *Iter) FindElement(dst *Element, path ...string) (*Element, error) + func (i *Iter) Float() (float64, error) + func (i *Iter) FloatFlags() (float64, FloatFlags, error) + func (i *Iter) Int() (int64, error) + func (i *Iter) Interface() (interface{}, error) + func (i *Iter) MarshalJSON() ([]byte, error) + func (i *Iter) MarshalJSONBuffer(dst []byte) ([]byte, error) + func (i *Iter) Object(dst *Object) (*Object, error) + func (i *Iter) PeekNext() Type + func (i *Iter) PeekNextTag() Tag + func (i *Iter) Root(dst *Iter) (Type, *Iter, error) + func (i *Iter) SetBool(v bool) error + func (i *Iter) SetFloat(v float64) error + func (i *Iter) SetInt(v int64) error + func (i *Iter) SetNull() error + func (i *Iter) SetString(v string) error + func (i *Iter) SetStringBytes(v []byte) error + func (i *Iter) SetUInt(v uint64) error + func (i *Iter) String() (string, error) + func (i *Iter) StringBytes() ([]byte, error) + func (i *Iter) StringCvt() (string, error) + func (i *Iter) Type() Type + func (i *Iter) Uint() (uint64, error) + type Object struct + func (o *Object) DeleteElems(fn func(key []byte, i Iter) bool, onlyKeys map[string]struct{}) error + func (o *Object) FindKey(key string, dst *Element) *Element + func (o *Object) FindPath(dst *Element, path ...string) (*Element, error) + func (o *Object) ForEach(fn func(key []byte, i Iter), onlyKeys map[string]struct{}) error + func (o *Object) Map(dst map[string]interface{}) (map[string]interface{}, error) + func (o *Object) NextElement(dst *Iter) (name string, t Type, err error) + func (o *Object) NextElementBytes(dst *Iter) (name []byte, t Type, err error) + func (o *Object) Parse(dst *Elements) (*Elements, error) + type ParsedJson struct + Message []byte + Strings *TStrings + Tape []uint64 + func Parse(b []byte, reuse *ParsedJson, opts ...ParserOption) (*ParsedJson, error) + func ParseND(b []byte, reuse *ParsedJson, opts ...ParserOption) (*ParsedJson, error) + func (pj *ParsedJson) Clone(dst *ParsedJson) *ParsedJson + func (pj *ParsedJson) ForEach(fn func(i Iter) error) error + func (pj *ParsedJson) Iter() Iter + func (pj *ParsedJson) Reset() + type ParserOption func(pj *internalParsedJson) error + func WithCopyStrings(b bool) ParserOption + func WithValidateUTF8(b bool) ParserOption + type Serializer struct + func NewSerializer() *Serializer + func (s *Serializer) CompressMode(c CompressMode) + func (s *Serializer) Deserialize(src []byte, dst *ParsedJson) (*ParsedJson, error) + func (s *Serializer) Serialize(dst []byte, pj ParsedJson) []byte + type Stream struct + Error error + Value *ParsedJson + type TStrings struct + B []byte + type Tag uint8 + func (t Tag) String() string + func (t Tag) Type() Type + type Type uint8 + const TypeArray + const TypeBool + const TypeFloat + const TypeInt + const TypeNone + const TypeNull + const TypeObject + const TypeRoot + const TypeString + const TypeUint + func (t Type) String() string