Documentation
¶
Overview ¶
Package dynamic converts a json.Document to dynamic JSON and vice versa.
Dynamic [SON] holds the dynamic go data structure created when unmarshaling JSON into an untyped `interface{}` value.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToDocument ¶
ToDocument builds a json.Document from a dynamic JSON data structure,
i.e. akin to what you get when the standard library unmarshals into a "any" type. TODO Options: specify Store
Types ¶
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
JSON holds the dynamic go data structure created when unmarshaling JSON into an untyped `interface{}` value.
The inner structure is built from a JSON string using map[string]any for objects, []any for arrays, string for strings and float64 for numbers.
func ToJSON ¶
ToJSON converts a json.Document into a dynamic JSON data structure.