Answers for "newtonsoft json deserialize dynamic"

C#
2

json.net deserialize dynamic

dynamic d = JObject.Parse("{number:1000, str:'string', array: [1,2,3,4,5,6]}");

Console.WriteLine(d.number);
Console.WriteLine(d.str);
Console.WriteLine(d.array.Count);
Posted by: Guest on May-08-2021
1

newtonsoft create dynamic object

dynamic d = Newtonsoft.Json.Linq.JObject.Parse("{number:1000, str:'string', array: [1,2,3,4,5,6]}");
Posted by: Guest on March-18-2020

C# Answers by Framework

Browse Popular Code Answers by Language