I have the following variable of type {Newtonsoft.Json.Linq.JArray}
.
properties[\"Value\"] {[
{
\"Name\": \"Username\",
\"Selected\":
The example in the question is a simpler case where the property names matched exactly in json and in code. If the property names do not exactly match, e.g. property in json is "first_name": "Mark"
and the property in code is FirstName
then use the Select method as follows
List items = ((JArray)array).Select(x => new SelectableEnumItem
{
FirstName = (string)x["first_name"],
Selected = (bool)x["selected"]
}).ToList();