Documentation
¶
Overview ¶
Package rawjson validates JSON and edits selected object fields without serializing the surrounding message. Values are immutable and retain numbers as lexemes. Object comparison ignores key order; output never does.
Index ¶
- func Equal(a, b Value) bool
- type Kind
- type Value
- func (v Value) Bool() (bool, error)
- func (v Value) Elements() []Value
- func (v Value) Int64() (int64, error)
- func (v Value) Keys() []string
- func (v Value) Kind() Kind
- func (v Value) Member(key string) (Value, bool)
- func (v Value) Raw() []byte
- func (v Value) Replace(path []string, replacement Value) (Value, error)
- func (v Value) String() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
Value owns its source bytes. The zero value is invalid, distinct from null.
func Parse ¶
Parse rejects malformed JSON, invalid Unicode and duplicate decoded member names at every depth. It never converts a JSON number to a floating point value.