How can I access the field name "DateAndTime" from the below array, I need to format the json Date output correctly. Any advice/assistance would be appreciated.
var chartData = [{"Value1":17.800,"DateAndTime":"\/Date(1338501601000)\/"}]
How can I access the field name "DateAndTime" from the below array, I need to format the json Date output correctly. Any advice/assistance would be appreciated.
var chartData = [{"Value1":17.800,"DateAndTime":"\/Date(1338501601000)\/"}]
Like this:
alert( chartData[0].DateAndTime );
But take care you are lacking an ending ] in your posted code.
See working demo.