Hello everyone! I am trying to import a very simple JSON file to Neo4j with "apoc.import.json". I have looked at the similar topics in here but couldn't understand what is wrong.
{"name":"Nejdet"}
This is the content of my JSON file. Neo4j gives me "Failed to invoke procedure apoc.import.json
: Caused by: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "type" is null" error. When I change the scructure of the JSON file to this;
{
"name":"nejdet"
}
The error message changes to "Failed to invoke procedure apoc.import.json
: Caused by: com.fasterxml.jackson.core.io.JsonEOFException: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (String)"{"; line: 1, column: 1]) at [Source: (String)"{"; line: 1, column: 2]".
I do not know how to deal with neither of the error messages. When I try to import JSON file from neo4j's site, it doesn't give any error, so it must find something wrong with these JSON files. I have already enabled "apoc.import.file.use_neo4j_config=true" in my apoc.config. I would appreciate a lot if someone would help me to understand what is going on.