I have a list of objects like this (created from PHP then json encoded):
{"10":{"10":["4","7","2","2","0","32"],"11":["5","22","1","1","0","0"]}}
translated:
{"X":{"Y":["unique_id","data","data","data","data","data"],"Y":["unique_id","data","data","data","data","data"]
But im trying to find a way to obtain the X:Y by looking for the unique_id lets say it was 4.
What would be the most efficient way to do this ?
If they’re unique ID’s, create a separate lookup table.
DEMO: http://jsfiddle.net/LXE3B/