Parsing Json string in .Net C#

Parsing Json string in .Net C#
1 vote, 5.00 avg. rating (95% score)

Introduction

JSON.NET very good and open source tool with many features for parsing JSON String in .NET C#. This adds lot of comfort and must have utility for any .NET programmer. Json.NET is a popular high-performance JSON framework for .NET

Skill Level – Medium

JSON.NET

image

Direct Download Link: https://github.com/JamesNK/Newtonsoft.Json/archive/master.zip

CodePlex:                   http://json.codeplex.com/

Downloads available: https://github.com/JamesNK/Newtonsoft.Json/releases

Source code view:      https://github.com/JamesNK/Newtonsoft.Json

StackOverflow:           http://stackoverflow.com/questions/tagged/json.net

 

Quickly Parsing JSON string with C#

Add reference of Newtonsoft.Json dll

 
JObject o = JObject.Parse(@" { ""ID"":""123"", ""Membership"": { ""Group1"":""Reader"" } }"); 
string IDVal = (string)o["ID"];

Conclusion

This is one of the must have open source stable utility

April 14, 2015 В· Adi В· No Comments
Tags: , , ,  В· Posted in: C#, JSON, Tools

Leave a Reply

What is 12 + 12 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)