I'm trying to loop through an object and find a specific match. When I find a match, I want to pull the other key value pairs in the object. So if I have an object in this form:
[{"ID":"3","NAME":"John","Age":"15"},{"ID":"4","NAME":"Mike","Age":"10"},{"ID":"5","NAME":"Tim","Age":"18"},{"ID":"6","NAME":"Ken","Age":"20"}]
and I have a search/match value
var MatchValue = 4;
How can I iterate through my object to find the "ID" that equals 4 and display the "NAME" and "AGE" from the object? Any help on this would be greatly appreciated. Thanks in advance. #JsonNoob.