I have a question about parsing JSON data with JScript .NET, 4.0. I am using Visual Studio 2005 running in Windows XP to make a Windows form (as opposed to a website).
My RESTful API calls return JSON data in the form of an array of objects, for example:
[{"country": "USA", "state": "CA", "city": "San Francisco”}, {“country”: “USA”, “state”: “WA”, “city”: “Seattle”}, {"country": "USA", "state": “MA", "city": “Boston”}],
and I don’t know how to parse it into a usable object. I think I need something like a serializer/deserializer, like DataContractJsonSerializer to do this, see MSDN, but am having difficulty implementing it in JScript .NET 4.