I'm new to javascript and need to iterate through a JSON list of dictionaries to create an list for each key.
Here's my JSON:
[
{
"Date": "Aug. 14, 2015",
"Reel": "Reel 1",
"Job": "Color Correction",
"Status": "In Progress",
"Completion": "60"
},
{
"Date": "Aug. 14, 2015",
"Reel": "Reel 1",
"Job": "Conform",
"Status": "In Progress",
"Completion": "70"
},
{
"Date": "Aug. 14, 2015",
"Reel": "Reel 2",
"Job": "Scanning",
"Status": "Complete",
"Completion": "100"
},
{
"Date": "Aug. 12, 2015",
"Reel": "Reel 1",
"Job": "QC only",
"Status": "In Progress",
"Completion": "50"
}
]
I'm using this function to read in JSON:
$.getJSON('cgi-bin/fakedata.txt', function(main)
I want to be able to access main['Date'] = ['August 12, 2015','August 14, 2015']
etc...