cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 

Head's Up! Site migration is underway. Phase 2: migrate recent content

Payload does not seem to be valid (JSON) data

jk05802
Node Link

Hello,

I tried to use the below command and have been getting the Payload doesn't seem to be valid (JSON) data error message.

jk05802_1-1668216388074.png

But when used just the match statement, I could fetch the data.

jk05802_0-1668215305921.png

Could someone help me on this please?

Thanks,

Jashwanth

 

#neosemantics #post #rdf #schema

1 ACCEPTED SOLUTION

glilienfield
Ninja
Ninja

 

The error is indicating the payload is not proper json.  The manual states that the payload is a json map with up to four keys. the first is the cypher query, whose key is β€˜cypher’. It looks like you are missing this key in your payload. Insert β€œcypher” before the semicolon that is in front of your cypher.  The renaming three parameters look optional. 

2F040E21-5A71-42C9-B243-D9E110EADA9D.png

View solution in original post

2 REPLIES 2

glilienfield
Ninja
Ninja

 

The error is indicating the payload is not proper json.  The manual states that the payload is a json map with up to four keys. the first is the cypher query, whose key is β€˜cypher’. It looks like you are missing this key in your payload. Insert β€œcypher” before the semicolon that is in front of your cypher.  The renaming three parameters look optional. 

2F040E21-5A71-42C9-B243-D9E110EADA9D.png

Thank you so much!!!!

This one worked.

:POST http://localhost:11004/rdf/neo4j/cypher {"cypher": "MATCH (n: Artist { name: 'John Lennon'}) return n"}