apoc.json.path

Function APOC Core

apoc.json.path('{json}','json-path')

Signature

apoc.json.path(json :: STRING?, path = $ :: STRING?) :: (ANY?)

Input parameters

Name Type Default

json

STRING?

null

path

STRING?

$

Usage Examples

The examples in this section are based on the following sample graph:

CREATE (:Person {json:'{a:[1,2,3]}'});
MATCH (p:Person)
RETURN apoc.json.path(p.json, "$.a") AS output;
Table 1. Results
Output

[1, 2, 3]