Loading TOC...

MarkLogic 12 EA 2 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> 

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.