HS.JSON.Path

class HS.JSON.Path extends %Library.RegisteredObject

A Caché ObjectScript implementation of JSONPath Expressions syntax is Caché ObjectScript rather than JavaScript. Derived from: JSONPath 0.8.5 - XPath for JSON Copyright (c) 2007 Stefan Goessner (goessner.net) Licensed under the MIT (MIT-LICENSE.txt) licence.

Method Inventory

Methods

classmethod %Evaluate(pObj As %SystemBase, pExpr As %String, pMode As %Boolean = 0, Output pStatus As %Status) as %SystemBase
Returns the result of applying pExpr to pObj.
Possible values for pMode:
0 (default): return array of values matching the expression.
1 : return array of paths matching the expression.
2 : return object with values matching the expression keyed by their associated paths.

Inherited Members

Inherited Methods

Feedback