Neo4j CyphereError试图将转义的json用作字符串

Neo4j CyphereError试图将转义的json用作字符串,neo4j,cypher,Neo4j,Cypher,我正在尝试使用以下值在创建集上运行一个: "ON CREATE SET node.stat_val = "[{\\"id\\":\\"20a80637-f1d5-40d7-968a-a1b44da5afe0\\",\\"title\\":\\"Checklist Adesão\\",\\"isPersonalList\\":true,\\"isSharedList\\":false,\\"settings\\":{\\"preventSolve\\":false,\\"dontAllo

我正在尝试使用以下值在创建集上运行一个

"ON CREATE SET 
    node.stat_val = "[{\\"id\\":\\"20a80637-f1d5-40d7-968a-a1b44da5afe0\\",\\"title\\":\\"Checklist Adesão\\",\\"isPersonalList\\":true,\\"isSharedList\\":false,\\"settings\\":{\\"preventSolve\\":false,\\"dontAllowChanges\\":false,\\"tags_setting\\":[\\"check_adesao\\"]},\\"tasks\\":[{\\"title\\":\\"teste1\\",\\"id\\":\\"1f255631-cfd6-4c44-9d63-5b29952d7b33\\"}]}]", 
    node.stat_name = 'max', 
    node.start_epoch = '1577398480', 
    node.end_epoch = '1577398490', 
    node.published_tag = 'unique_tag',
    node.publisher_last_updated_epoch_ms = timestamp()"
但我面临一个错误,因为编码的json:

neobolt.exceptions.CypherSyntaxError:无效输入“d”:应为“n/n”或“s/s”(第2行第38列(偏移量:136))


什么是转义json内容的正确方法?

如果要转义斜杠,应该可以:

ON CREATE SET 
    node.stat_val = "[{\"id\":\"20a80637-f1d5-40d7-968a-a1b44da5afe0\",\"title\":\"Checklist Adesão\",\"isPersonalList\":true,\"isSharedList\":false,\"settings\":{\"preventSolve\":false,\"dontAllowChanges\":false,\"tags_setting\":[\"check_adesao\"]},\"tasks\":[{\"title\":\"teste1\",\"id\":\"1f255631-cfd6-4c44-9d63-5b29952d7b33\"}]}]", 
    node.stat_name = 'max', 
    node.start_epoch = '1577398480', 
    node.end_epoch = '1577398490', 
    node.published_tag = 'unique_tag',
    node.publisher_last_updated_epoch_ms = timestamp()

如果您要避开斜杠,这应该可以:

ON CREATE SET 
    node.stat_val = "[{\"id\":\"20a80637-f1d5-40d7-968a-a1b44da5afe0\",\"title\":\"Checklist Adesão\",\"isPersonalList\":true,\"isSharedList\":false,\"settings\":{\"preventSolve\":false,\"dontAllowChanges\":false,\"tags_setting\":[\"check_adesao\"]},\"tasks\":[{\"title\":\"teste1\",\"id\":\"1f255631-cfd6-4c44-9d63-5b29952d7b33\"}]}]", 
    node.stat_name = 'max', 
    node.start_epoch = '1577398480', 
    node.end_epoch = '1577398490', 
    node.published_tag = 'unique_tag',
    node.publisher_last_updated_epoch_ms = timestamp()