On Sun, Oct 16, 2011 at 6:06 AM, Peter Neubauer <
[email protected]> wrote:
>
> Looking at
> http://docs.neo4j.org/chunked/snapshot/rest-api-node-properties.html#rest-api-set-property-on-node
> you can set the property as just a string in the request, which is
> valid JSON.



Hey Peter,

I think the confusion may have stemmed from the fact that strings by
themselves are *not* actually valid JSON as far as I understand.

I believe valid JSON is *technically* only objects and arrays, though many
libraries, in practice, tend to support primitive values as valid JSON too.
It's certainly convenient, and I prefer that, too.

E.g. http://jsonlint.com/ validates {} and [] but not "" or 1 or true:


Parse error on line 1:
""
^
Expecting '{', '['



Cheers,
Aseem
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to