queryFrom

open fun queryFrom(document: Any): Any

Evaluates this JSON Pointer on the given document. The document is usually a JSONObject or a JSONArray instance, but the empty JSON Pointer ("") can be evaluated on any JSON values and in such case the returned value will be document itself.

Return

the result of the evaluation

Parameters

document

the JSON document which should be the subject of querying.

Throws

if an error occurs during evaluation