Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object represents a JSON object that maintains key ordering.
func (Object) MarshalJSON ¶
func (*Object) SetAndReturn ¶
SetAndReturn is equivalent to Set, while returning a pointer to the Object. Primarily used for creating Objects more easily, by allowing chaining of multiple SetAndReturns.
type Value ¶
type Value struct {
V interface{}
}
Value represents a JSON value unmarshaled from a string that maintains key ordering in its nested component objects. Calling json.Unmarshal() on it behaves similarly to calling json.Unmarshal() on interface{}, except that objects are unmarshaled to *ojson.Object, which maintains key ordering, instead of map[string]interface{}, which doesn't.
func MustNewValueFromJSON ¶
func NewValueFromJSON ¶
func (Value) MarshalJSON ¶
func (*Value) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.