Storing Persistent Data By Using JSON

JavaScript Object Notation, or JSON for short, is a lightweight computer data interchange format.

Serializing Lua objects to JSON and storing the objects as files in a file system is a simple and convenient method for storing basic information such as configuration data. Using JSON as a "mini-database" may be of particular interest to firmware developers as a device may not have enough memory to run a database such as SQLite.

APIs: