Documentation
¶
Overview ¶
Package jsonmap provides tools to serialize a map as JSON using a given order for keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ordered ¶
Ordered wraps a map[string]interface{}.
func (Ordered) MarshalJSON ¶
MarshalJSON implements interface encoding/json.Marshaler. MarshalJSON returns o.Data serialized as JSON. The keys in o.Order are serialized first. If keys not in o.Order remain, they are sorted.
func (*Ordered) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.