I've been a big fan of JSON.Net for the past few years. Always helping me with less code and high-performance conversion of JSON to C# objects. Thanks to James who made it possible as the fastest framework for manipulating JSON with great documentation. This article describes a JSON format where a list of JSON objects is present with no root elements. This would be easy if you have a root element; you could then use the JObject of json.net. But in case you don't then this would throw an exception.
Let us say we have a list of elements in the JSON data:
Let us say we have a list of elements in the JSON data:
- [
- {
- "major": 4,
- "minor": 0,
- "profile": "client",
- "servicePack": null,
- "url": "http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=5765d7a8-7722-4888-a970-ac39b33fd8ab"
- },
- {
- "major": 4,
- "minor": 0,
- "profile": "full",
- "servicePack": null,
- "url": "http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en"
- },
- {
- "major": 3,
- "minor": 5,
- "profile": "client",
- "servicePack": 1,
- "url": "http://www.microsoft.com/downloads/details.aspx?FamilyId=8CEA6CD1-15BC-4664-B27D-8CEBA808B28B&displaylang=en"
- },
- {
- "major": 3,
- "minor": 5,
- "profile": "full",
- "servicePack": 1,
- "url": "http://go.microsoft.com/fwlink/?LinkId=124150"
- },
- {
- "major": 3,
- "minor": 0,
- "profile": "full",
- "servicePack": 1,
- "url": "http://www.microsoft.com/downloads/details.aspx?FamilyId=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en"
- },
- {
- "major": 2,
- "minor": 0,
- "profile": "full",
- "servicePack": 2,
- "url": "http://www.microsoft.com/downloads/details.aspx?familyid=5B2C0358-915B-4EB5-9B1D-10E506DA9D0F&displaylang=en"
- },
- {
- "major": 1AAA,
- "minor": 1,
- "profile": "full",
- "servicePack": 1,
- "url": "http://www.microsoft.com/downloads/details.aspx?FamilyID=a8f5654f-088e-40b2-bbdb-a83353618b38&DisplayLang=en"
- }
- ]
- // Sample taken from http://www.hanselman.com/blog/NuGetPackageOfTheWeek4DeserializingJSONWithJsonNET.aspx

Asif KhanPosted May 27, 2019, 1:39 AM
Hi i'm new in coding but get some challenging work , this is ? I want to read and write whats app data from my aspx application is here anybody help me out this work? how i do?
Sr KarthigaPosted Feb 26, 2016, 9:13 AM
good one
Sr KarthigaPosted Feb 26, 2016, 9:13 AM
nice explanation