How to call a web-API method in LUA (Solar2D) and work with the JSON response

Hello,

I’ve uploaded a video to YouTube today.

If you are looking to import data from a remote data-source over a RESTful API, then this video will show you how to do that. It can be found here:

In this video I look at how to use LUA’s “network.request()” method to make a call to a remote web-API method, I then take you through the JSON string that makes up the response, before I finally show you how to traverse the JSON string and extract and display some data as a table.

The web-method I use as an example in this video belongs to an API published as part of our “Online High-Scores” service.

To find out more about how these services can enhance your game, please visit us at:

I hope this helps!

2 Likes