FusePowered

JSON

Overview

The JSON library that we’ve been shipping in our sample code (e.g. Facebook) is now an official part of the Corona core. The really great thing about this library is that it makes serializing/deserializing Lua tables a no-brainer.

Starting with build 741, Corona is now shipping with the dkjson library. This library is Lua 5.2 compliant so you need to load the library as follows:
 value = require( "json" )
Loading the library without the "value =" will generate a runtime error.

More Information

For more information see the APIs listed below and Walter's Blog Post on JSON.

Additionally, you can view the JSON Tutorial also posted to the blog for a complete usage walk-through.