mtranter/CypherNet — pull request #4 by hsrobmln (2013-12-14 01:22:58+00:00)
Title: Fixed a weird deserialization error (relating to Json.Net), and fixed the CreateNode__CreatesNode() Unit Test

I believe these fixes are solid. All unit and integration tests are passing. I was having some bizarre issues while testing, I'm not sure if it was just my data set (I'm not super familiar with Neo4j, just started using it), or something else, but I couldn't deserialize the result entries into JToken[] arrays, but deserializing into JToken and accessing the "row" property seemed to work.

I also added a check so that the deserialization still works as it did before, via a cast check to JArray, falling back to the ["row"] accessor that seemed to fix things for me, instead of JToken[].

I'm on Neo4j 2.0.0, maybe it's some screwy API change?

Anyways, let me know if you find any issues with this pull request. Thanks.