How to do json serialization using C# ?
-
What is the isue?Khiem Tran– Khiem Tran2017-12-07 04:25:54 +00:00Commented Dec 7, 2017 at 4:25
-
change your tag? c -> c#Vin– Vin2017-12-07 04:31:30 +00:00Commented Dec 7, 2017 at 4:31
-
1Hey instead of posting image of code you can put the particular code.Dilip– Dilip2017-12-07 04:32:26 +00:00Commented Dec 7, 2017 at 4:32
-
you can check how i do this in razor. it may help stackoverflow.com/questions/47610061/…Neville Nazerane– Neville Nazerane2017-12-07 05:10:04 +00:00Commented Dec 7, 2017 at 5:10
-
1By using newtonsoft.json.dll we can easily parse JSONClinton Prakash– Clinton Prakash2017-12-07 05:15:27 +00:00Commented Dec 7, 2017 at 5:15
Add a comment
|
1 Answer
You can use this code to serialize your object
var serialized = JsonConvert.SerializeObject(*Your object*);
You have to download the Newtonsoft library from here