-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,455
  • 4
  • 28
  • 53

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
  • 22,239
  • 9
  • 44
  • 87