Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

dynamic c# .add

var jsonString = @"{}";

var jsonDoc = JsonSerializer.Deserialize<Dictionary<string, object>>(jsonString);

jsonDoc.Add("Name", "Khurshid Ali");

Console.WriteLine(JsonSerializer.Serialize(jsonDoc));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dynamic
ADD COMMENT
Topic
Name
8+1 =