json-parse() #

nodeset json-parse(string json)

Parses a JSON text into a structured JSON document (OXN) and returns its root node.

Parameters #

If the parameter cannot be decoded, the function returns an empty node-set.

Example #

json-parse('{"active":true}')/active = true()
json-parse($data/description)
json-parse(json-stringify($body))

See also #