Skip to content

JsonProperty is now taken into account for Cypher Parsing

Compare
Choose a tag to compare
@cskardon cskardon released this 17 Sep 14:54
· 243 commits to master since this release

If you describe a property in your class using the JsonProperty attribute Neo4jClient will take that into account when creating Cypher, for example, say you have created the default Neo4j Movies DB :play movies - and want to pull that into your .NET code, but would prefer to use .NET naming conventions (UpperCamelCase) - now you can!

Example

class Movie {
    [JsonProperty("title")]
    public string Title { get;set; }
    [JsonProperty("released")]
    public int Released { get;set; }
}

Neo4jClient will now pay attention to the JsonProperty attributes when sending data to Neo4j, as well as for deserializing back.