I have some JSON-code which has multiple objects in it:
[ { \"MNGR_NAME\": \"Mark\", \"MGR_ID\": \"M44\", \"EMP_ID\": \"1849\"
You could use $.each or $.grep, if you also want to get the elements that contain the attribute.
filtered = $.grep(result, function(value) { return (value["MNGR_NAME"] !== undefined) }); count = filtered.length