How to save data like this in neo4j dumb question

(jalson1982) #1

Hello ... how to save data like this in neo4j
SET o.value="{"landingPage":"langingPage"}"
return o
it gives me always error

(Andrew Bowman) #2

It looks like you're attempting to set this as a JSON string, note that you're using quotes wrong here. You need to either escape your inner quotes, or use different kinds of quotes to make this work (single quotes on the outside of the string, double-quotes within the string, or vice versa).

You can try this:

SET o.value='{"landingPage":"langingPage"}'
return o

(jalson1982) #3

Many thx bro!!! Works very good. Thank you.