Documentation ¶
Overview ¶
Package jsonutil provides some helper functions for working with JSON objects
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
JSON object
func DecodeBuffer ¶
DecodeBuffer - parse JSON data into a map-object data: input data
func DecodeObject ¶
func DecodeObject(obj interface{}, 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.