I'm developing an ASP.NET application. I get JSON array from the client in the following format:
[ {"1": "value1"}, {"5": "value2"}, {"10": "value32"} ]
I want to save this array in the database as the array of following entity:
class Entry
{
public int Code { get; set; }
public string Value { get; set; }
}
How to convert this JSON array to the array of the entries?