Documentation
¶
Overview ¶
Package jsonedit edits JSON objects while preserving key order and untouched values, so aitk can update tool config files without reformatting the user's settings.
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 is a JSON object with ordered keys. Values stay raw until edited.
func Parse ¶
Parse decodes an object. Empty input yields an empty object. JSONC line comments are rejected.
func (*Object) Get ¶
func (o *Object) Get(k string) (json.RawMessage, bool)
Get returns the raw value at key.
func (*Object) MarshalJSON ¶
MarshalJSON renders the object with keys in order.