what is the best way to deserialize array of json objects without asp.net?
Json format: {"results" : [ { "a": "value A", "b": "value B"}, { "c": "value C", "d": "value D"}]}
Please note: Json object should be deserialized into .Net object.
what is the best way to deserialize array of json objects without asp.net?
Json format: {"results" : [ { "a": "value A", "b": "value B"}, { "c": "value C", "d": "value D"}]}
Please note: Json object should be deserialized into .Net object.
A lot of implementations in different languages are provided at http://www.json.org/ (the bottom of the page)
EDIT: apparently that page doesn't mention the built in JSON support while it does exist in .Net 3.5 according to MSDN
In PHP, for instance, you can do:
$json = json_decode($json_string);
and that will convert your JSON into an object/array
The Json.NET library, available here:
http://james.newtonking.com/projects/json-net.aspx
Works great.