C# JsonConvert - List of Lists with Multiple Types
So I'm trying to parse a JSON request that looks a bit like this: { "source_code":"MOODY", "code":"DAAAYLD", "name":"Aaa Corporate Bond Yield", "data":[ [ "2015-08-11", 3.96 ], [ "2015-08-10", 4.06 ], [ "2015-08-07", 3.96 ] ] } There's a few more items I've left out but they're not important. Now, I'm using var jsonData = JsonConvert.DeserializeObject<JsonResponseObj>(GetRawData(code)); to make a JsonResponseObj which looks like: public class JsonResponseObj { [JsonProperty("name")] public string name { get; set; } [JsonProperty("code")] public string code { get; set; } [JsonProperty("source_c
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.