Versions in this module Expand all Collapse all v3 v3.1.0 Jan 18, 2024 Changes in this version type Reader + func (r *Reader) StringAsBytes() []byte v3.0.0 Aug 29, 2022 Changes in this version + func ToJSONError(err error, target interface{}) error + func UnmarshalJSONWithReader(data []byte, readable Readable) error + type AnyValue struct + Array ArrayState + Bool bool + Kind ValueKind + Number float64 + Object ObjectState + String string + type ArrayState struct + func (arr *ArrayState) IsDefined() bool + func (arr *ArrayState) Next() bool + type ObjectState struct + func (obj *ObjectState) IsDefined() bool + func (obj *ObjectState) Name() []byte + func (obj *ObjectState) Next() bool + func (obj ObjectState) WithRequiredProperties(requiredProps []string) ObjectState + type Readable interface + ReadFromJSONReader func(*Reader) + type Reader struct + func NewReader(data []byte) Reader + func (r *Reader) AddError(err error) + func (r *Reader) Any() AnyValue + func (r *Reader) Array() ArrayState + func (r *Reader) ArrayOrNull() ArrayState + func (r *Reader) Bool() bool + func (r *Reader) BoolOrNull() (value bool, nonNull bool) + func (r *Reader) Error() error + func (r *Reader) Float64() float64 + func (r *Reader) Float64OrNull() (float64, bool) + func (r *Reader) Int() int + func (r *Reader) IntOrNull() (int, bool) + func (r *Reader) Null() error + func (r *Reader) Object() ObjectState + func (r *Reader) ObjectOrNull() ObjectState + func (r *Reader) ReplaceError(err error) + func (r *Reader) RequireEOF() error + func (r *Reader) SkipValue() error + func (r *Reader) String() string + func (r *Reader) StringOrNull() (string, bool) + type RequiredPropertyError struct + Name string + Offset int + func (e RequiredPropertyError) Error() string + type SyntaxError struct + Message string + Offset int + Value string + func (e SyntaxError) Error() string + type TypeError struct + Actual ValueKind + Expected ValueKind + Nullable bool + Offset int + func (e TypeError) Error() string + type ValueKind int + const ArrayValue + const BoolValue + const NullValue + const NumberValue + const ObjectValue + const StringValue + func (k ValueKind) String() string Other modules containing this package github.com/launchdarkly/go-jsonstream github.com/launchdarkly/go-jsonstream/v2