apoc.convert.getJsonPropertyMap

Function APOC Core

apoc.convert.getJsonPropertyMap(node,key[,'json-path']) - converts serialized JSON in property back to map

Signature

apoc.convert.getJsonPropertyMap(node :: NODE?, key :: STRING?, path =  :: STRING?) :: (MAP?)

Input parameters

Name Type Default

node

NODE?

null

key

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.convert.getJsonPropertyMap(p, "json") AS output;
Table 1. Results
Output

{a: [1, 2, 3]}