-1

the data for example is

var data = { "@timestamp": "2018-05-11 01:34" }

I've tried console.log(data.['@timestamp'])

but this gives an unexpected token error

Imo
  • 1,457
  • 3
  • 26
  • 51

1 Answers1

0

This works for me:

var data = { "@timestamp": "2018-05-11 01:34" }
console.log(data['@timestamp'])

You have typo with extra .?

libik
  • 20,520
  • 9
  • 39
  • 78