Versions in this module Expand all Collapse all v0 v0.0.18 Oct 31, 2026 Changes in this version + var ErrBadJSON = errors.New("invalid JSON") + var ErrNotFound = errors.New("field not found") + func EachField(data []byte, fn func(f Field) bool) (int, error) + type Field struct + Key []byte + KeyStart int + Type Type + ValueEnd int + ValueStart int + type ObjectScan struct + Coords []ValueCoord + Data []byte + Keys []string + func ScanObject(data []byte) (*ObjectScan, error) + func (o *ObjectScan) Get(key string) ([]byte, Type) + func (o *ObjectScan) GetString(key string) (string, bool) + type Type int + const TypeArray + const TypeBoolean + const TypeNotExist + const TypeNull + const TypeNumber + const TypeObject + const TypeString + func GetField(json []byte, field string) ([]byte, Type, error) + func GetPath(json []byte, path ...string) ([]byte, Type, error) + type ValueCoord struct + Length uint32 + Offset uint32 + Type Type