I have an array that looks like this
var data = [
{"target": "production", "datapoints": [[165.0, 136], [141.0, 176], [null, 176]]},
{"target": "test", "datapoints": [[169.0, 100], [151.0, 160], [null, 120]]},
{"target": "backup", "datapoints": [[1.0, 130], [32.0, 120], [13.0, 130]]}
]
Is it possible to search this array to return the hash that contains for example "production"
{"target": "production", "datapoints": [[165.0, 136], [141.0, 176], [null, 176]]}
I looked at this http://api.jquery.com/jQuery.inArray/ but didn't know how to use it.