I need to pull back from a database JSON documents that are not based on a standard object.
Is there a way using .NET to "deserialize" these documents into Lists & Dictionaries of primitive objects (string, int, bool, etc...)
Any library that can do this in both directions?
In the .NET 3.5 Framework you can use System.Web.Script.Serialization.JavaScriptSerializer. Using the Deserialize method will return an object which you can cast to a Dictionary type or Object[] depending on what's in the JSON string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With