Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 576 Bytes

json-parse.md

File metadata and controls

26 lines (17 loc) · 576 Bytes

json-parse()

OXN-node-set json-parse(string json)

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

Parameters

  • json: A valid JSON in serialized form (string).

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