I have this JSON object - in view mode
[{
"Urltitle": "",
"location": "",
"Url": ""
}, {
"Urltitle": "",
"location": "",
"Url": ""
}, {
"Urltitle": "",
"location": "",
"Url": ""
}]
Class:
namespace Models
{
public partial class Urls
{
public string Urltitle { get; set; }
public string Location { get; set; }
public string Url { get; set; }
}
}
Use this deserializer:
IList<T> ssdResponse = JsonSerializer.Deserialize<IList<T>>(content, JsonOptions);
But Keep getting error:
'The JSON value could not be converted to System.Collections.Generic.List`1[Models.Urls]. Path: $[0] | LineNumber: 0 |
I've tried solutions online but cannot get this successfully mapped - am I missing something?