I'm trying to find if a JProperty is inside a JContainer, if not add it, so I have this code:
But I get an exception thrown by Add saying: "Can not add property id to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object."
The exception is right as jCont is a jContainer that does contain a jProperty with the exact same id as the jProp object (a jProperty object).
Is the Contains function returning the wrong result, or am I using the function wrong?
Any help appreciated.