How to read JSON with moon?

Asked

Viewed 261 times

4

I wonder how to read this JSON down through language Lua.

json = '{"nome" : "Wallace de Souza"}'
  • Do you want to know how to interpret this or read the file? Have you seen this? http://lua-users.org/wiki/JsonModules

  • Interpret. Reading the file is another question ;)

  • I see now ;)

1 answer

2

This link is for a lib in Pure moon [http://regex.info/code/JSON.lua] to make the JSON Encode/Decode, already used in production and works extremely well, in addition the code is commented and is very simple to understand, recommend the use, to "install" just save the file in the folder of your project and use the 'require' normally.

  • I love that lib !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.