$.get('alldatestest.txt', function(data) { var picsObj = JSON.parse(data); alert(dayKey + ' ' + picsObj[dayKey]); });- returns "0812 100315/5065359-R1-19-20_scaled.jpg"
{"0810":"images/CNV00016-interim.jpg", "0812": "100315/5065359-R1-19-20_scaled.jpg", "1004": "100315/5065359-R1-19-20_scaled.jpg", "1008": "images/CNV00016-interim.jpg"}
Object.keys(obj).indexOf(key)
(you're not supposed to be able to do indexy stuffs on objects, but there you have it (angel) )
http://www.designartcraft.com/photo/afbp.htm
*subject to buggery (NJ), breakage and general fail