Here is the JSON data I have:
[
{
"_id": {
"$oid": "560c079e1691682b4ff327ad"
},
"year": "2015",
"month": "9",
"day": "30",
"time": "17:02:17",
"problemDesc": "test",
"resolution": "test",
"IM": "test"
}
]
I'm trying to retrieve the value of year using : console.log(json[0].year)
but it returns as undefined
. How can I successfully access the year value from this JSON object ?
fiddle :