28.02.2023, 10:14
Try this then:
Code:
data = require('json').pdecode(resp)
if type(data) == 'table' then
volume = data.payload.volumeStatus.volume
log(volume)
else
log('invalid response', resp)
end