Versions in this module Expand all Collapse all v0 v0.146.0 Dec 4, 2026 v0.145.0 Dec 3, 2026 Changes in this version + const DefaultIndent + func Equal(a, b []byte) bool + func IndentOf(body []byte) string + func Merge(existing []byte, want map[string]json.RawMessage, order []string) ([]byte, bool) + func Splice(body []byte, start, end int, with []byte) []byte + type Layout struct + Colon string + Indent string + Newline string + Unit string + func (l Layout) Encode(value []byte) []byte + type Member struct + KeyEnd int + KeyStart int + Name string + ValueEnd int + ValueStart int + type Object struct + Close int + Layout Layout + Members []Member + Open int + func Scan(body []byte) (object Object, ok bool) + func (o Object) Append(body []byte, name string, value []byte) []byte + func (o Object) Remove(body []byte, i int) []byte