The tags property names are dynamic. e.g. linux and cypher are dynamic in the json. I am trying to extract the dynamic tags and their values and associate them as properties to the Person node. Here is what I have so far:
CALL apoc.load.json("file:///example.json")
YIELD value
MERGE (p:Person {name: value.name})
ON CREATE SET
p.job = value.job,
p.department = value.department
RETURN p as Person;
example.json:
{
"name": "Harry",
"job": "Developer",
"tags": {
"linux": "awesome",
"cypher": "Working on it"
},
"department": "IT"
}