Kibana5.4 scripted field access to array by index

@spalger I have no option to preprocess the data we already have a lot of data in ES like that
I tried to do this
doc._source.sensor_data
_source.sensor_data
It giving me an error (Discover: compile error, other one runtime error)

I will be very thankful if you help me to solve this.