Hi,
Very simple but didn't have enough time to do a quick search. Kindly help me with the following.
public class myKeyValue
{
public int myKey { get; set; }
public int myValue { get; set; }
}
IList<myKeyValue> is what gets javascript serialized.
Following is what browser gets in one of its in-memory variable.
[{"myKey":1,"myValue":7},
{"myKey":2,"myValue":286},
{"myKey":3,"myValue":200},
{"myKey":4,"myValue":176}]
Now I simply want to access json value for the passed-in key. For example I pass 3 as a key and it returns me 200. I do not want to do it inside loop (that also will work, if there's no other way around). Kindly reply at the earliest.
I would really appreciate your help.
Thanks in advance.