Documentation
¶
Overview ¶
Package json provides a JSON format handler for chezmoi-split.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripComments ¶
StripComments removes single-line // comments from JSON. This allows parsing JSONC (JSON with comments) files.
Types ¶
type Handler ¶
type Handler struct{}
Handler implements format.Handler for JSON/JSONC files.
func (*Handler) Parse ¶
Parse reads JSON bytes and returns an *orderedmap.OrderedMap. All nested objects are also converted to OrderedMaps to preserve key order.
Click to show internal directories.
Click to hide internal directories.