It’s similar, but JavaScript would use : and , for separators rather than = and ;.
This is valid Lua table syntax, however. A program creates an embedded Lua environment with an item callback function and runs this file inside it. Something similar could be done to convert it to another format; just define item to output the data as JSON, or whatever other format you prefer.
The Prosody XMPP server, written in Lua, generates files of this type when serializing lists with the “internal” storage manager. See functions list_store and list_load in util/datamanager.lua.
It’s similar, but JavaScript would use
:and,for separators rather than=and;.This is valid Lua table syntax, however. A program creates an embedded Lua environment with an
itemcallback function and runs this file inside it. Something similar could be done to convert it to another format; just defineitemto output the data as JSON, or whatever other format you prefer.The Prosody XMPP server, written in Lua, generates files of this type when serializing lists with the “internal” storage manager. See functions
list_storeandlist_loadin util/datamanager.lua.