How to read JSON with lua?

Question:

I would like to know how to read this JSON below through Lua language.

json = '{"nome" : "Wallace de Souza"}'

Answer:

This link is for a lib in Lua Puro [ http://regex.info/code/JSON.lua] to encode/decode JSON, I've used it in production and it works extremely well, in addition the code is commented and is very simple to understand, I recommend using it, to "install" just save the file in your project folder and use 'require' normally.

Scroll to Top