How to read JSON with lua?


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

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


This link is for a lib in Lua Puro [] 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