func JsonLeafNodes(jsonVal []byte) ([]LeafNode, error)
Wrap LeafNodes for JSON. 'jsonVal' is an JSON value
func JsonLeafPath(jsonVal []byte) ([]string, error)
Wrap LeafPath for JSON. 'xmlVal' is an JSON value
func JsonLeafValues(jsonVal []byte) ([]interface{}, error)
Wrap LeafValues for JSON. 'jsonVal' is an JSON value
func JsonNewJson(jsonVal []byte, keypairs ...string) ([]byte, error)
Wrap NewMap for JSON and return as JSON 'jsonVal' is an JSON value 'keypairs' are "oldKey:newKey" values that conform to 'keypairs' in (Map)NewMap.
func JsonNewXml(jsonVal []byte, keypairs ...string) ([]byte, error)
Wrap NewMap for JSON and return as XML 'jsonVal' is an JSON value 'keypairs' are "oldKey:newKey" values that conform to 'keypairs' in (Map)NewMap.
func JsonPathForKeyShortest(jsonVal []byte, key string) (string, error)
Wrap PathForKeyShortest for JSON.
func JsonPathsForKey(jsonVal []byte, key string) ([]string, error)
Wrap PathsForKey for JSON.
func JsonReaderToXml(jsonReader io.Reader) ([]byte, []byte, error)
FromJsonReader() --> ToXml().
func JsonReaderToXmlWriter(jsonReader io.Reader, xmlWriter io.Writer) error
FromJsonReader() --> ToXmlWriter(). Handy for transforming bulk message sets.
func JsonToMap(jsonVal []byte) (map[string]interface{}, error)
FromJson() --> map[string]interface{}
func JsonToXml(jsonVal []byte) ([]byte, error)
FromJson() --> ToXml().
func JsonToXmlWriter(jsonVal []byte, xmlWriter io.Writer) error
FromJson() --> ToXmlWriter().
func JsonUpdateValsForPath(jsonVal []byte, newKeyValue interface{}, path string, subkeys ...string) ([]byte, error)
Wrap UpdateValuesForPath for JSON
'jsonVal' is XML value 'newKeyValue' is the value to replace an existing value at the end of 'path' 'path' is the dot-notation path with the key whose value is to be replaced at the end (can include wildcard character, '*') 'subkeys' are key:value pairs of key:values that must match for the key
func JsonValuesForKey(jsonVal []byte, key string, subkeys ...string) ([]interface{}, error)
Wrap ValuesForKey for JSON.
func JsonValuesForKeyPath(jsonVal []byte, path string, subkeys ...string) ([]interface{}, error)
Wrap ValuesForKeyPath for JSON.
func MapToJson(m map[string]interface{}, safeEncoding ...bool) ([]byte, error)
interface{} --> ToJson (w/o safe encoding, default) {