Documentation
¶
Overview ¶
Package jsonutil provides some helper functions for working with JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON
deprecated
type JSON struct {
// contains filtered or unexported fields
}
JSON object
Deprecated: This type is deprecated and will be removed in a future release.
func DecodeBuffer ¶
DecodeBuffer - parse JSON data into a map-object data: input data
func DecodeObject ¶
func DecodeObject(obj any, r io.ReadCloser) (*JSON, error)
DecodeObject JSON data into a Go object and map-object A Go object has no method to check if the property was actually specified in JSON or not, but a map-object provides this functionality. Note: not suitable for a large data obj: target object r: input data (reader object)
func DecodeObjectBuffer ¶
DecodeObjectBuffer - parse JSON data into a Go object and map-object obj: target object data: input data
Click to show internal directories.
Click to hide internal directories.