I have a json object as follows:
[{"Id":"1","Item":"Apples","PricePerKilo":"10.00"},
{"Id":"3","Item":"Oranges","PricePerKilo":"12.00"}]
I wish to get the PricePerKilo where the Id is 3.
var fruits = jQuery("#products").data('productData');
fruits holds the json object by the way...
I will explain what I want to do in SQL, because I find it easier to explain this way
SELECT PricePerKilo From fruits WHERE Id = 3 LIMIT 1