03.09.2020, 06:29
You need to combine table items to a single string and the decode it from JSON to Lua table. This example will log the short name and the first value of values entry.
Code:
response = table.concat(response_body)
data = require('json').pdecode(response)
log(data.indicator.short_name)
log(data.indicator.values[ 1 ].value)