JSONPath Tools / @jsonpath-tools/codemirror-lang-jsonpath / getResult
Function: getResult()
ts
function getResult(state): Promise<{
nodes: readonly JSONValue[];
paths: readonly NormalizedPath[];
}>Returns the JSONPath query result.
Parameters
state
EditorState
Editor state.
Returns
Promise<{ nodes: readonly JSONValue[]; paths: readonly NormalizedPath[]; }>