Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #deserialize #string #array
ADD COMMENT
Topic
Name
3+9 =