Im working on parsing a json object array so that if the value = 'y', the list of keys is returned as a comma-seperated list that is a variable that will be returned in html.
I want to reference the key/value pairs by index position because I only want to return the values that are the key/values #13-39.
Any suggestions about the best way to go about this is?
I already have a jquery map function to access some of the properties through (ie, obj.address). But I havent been able to successfully use filter or grep to only select the object properties with certain key names or index positions.
This is what the array looks like:
[{"Name": "Name1", "Key1": "Y", "Key2": "Y", "Key3": "N", "Key4": "Y", "Key5": "N"},
{"Name": "Name2", "Key1": "N", "Key2": "Y", "Key3": "Y", "Key4": "N", "Key5": "N"},
{"Name": "Name3", "Key1": "N", "Key2": "Y", "Key3": "Y", "Key4": "Y", "Key5": "Y"}}
Thanks for any help!