Answers for "how to deserialize string array in c#"

C#
0

how to deserialize string array in c#

[{"id":"669","content":" testing","comments":"","ups":"0","downs":"0"}, {"id":"482","content":" test2","comments":"","ups":"0","downs":"0"}]
Posted by: Guest on August-08-2021
0

how to deserialize string array in c#

public class MyClass {
    public string id { get; set; }
    public string content { get; set; }
    public string ups { get; set; }
    public string downs { get; set; }
}

MyClass[] result = JsonConvert.DeserializeObject<MyClass[]>(download);
Posted by: Guest on August-08-2021
0

how to deserialize string array in c#

string[] arr = JsonConvert.DeserializeObject<string[]>(download);
Posted by: Guest on August-08-2021

Code answers related to "how to deserialize string array in c#"

C# Answers by Framework

Browse Popular Code Answers by Language