MarkLogic 10 Product Documentation
xdmp.jsonPointer

xdmp.jsonPointer(
   node as Node,
   path as String
) as Node?

Summary

Resolve a (relative) JSON pointer (see RFC 6901) in the context of a node and return the result, if any.

Parameters
node The JSON context node.
path The JSON pointer string.

Example

xdmp.jsonPointer({properties: {count: {type: "integer", minimum:0}, items: {type: "array", items: {type: "string", minLength: 1}}}},"/properties/count")
=>
{"type":"integer", "minimum":0}
xquery> 
Powered by MarkLogic Server | Terms of Use | Privacy Policy