23.10.2020, 06:47
One small improvement, you should use the whole table instead of only the first element. If the JSON response is large enough then the response table will have more than 1 element. Use this instead:
Code:
data = json.decode(table.concat(response_body))