I'm new to Json.Net - but have been testing it with CouchDB and SharpCouch as of late.
Right now I'm having a good deal of success in pulling a Json string from Couch, Serializing it into an XElement and then binding it to a XAML form.
Where I'm having the problem is in saving the xml back to CouchDB.
To serialize to an XElement - it requires a root element to be added - which is no problem, but to save it back, I can't have my data reside in a root element. That takes away some of the point of the indexing goodness of Couch.
Any good recommendations?
JObject myJObject = JObject.Read(oldJObject.Property("root").Value.ToString());
but that mangles the text and isn't read correctly as a new object.
So any advice on getting rid of that "root" property for the JObject would be really helpful.
Otherwise - any tips on getting Json.Net to bind directly to a XAML form would be really helpful!
Thanks, and when I get up to speed I'd love to help out!.