Write LuaTable to file

215 views Asked by At

I'm trying to write a table with LUAJ and I want to export it to a file. Is it possible?

final LuaTable innerTable = new LuaTable();
innerTable.set("key", "value");

final LuaTable parentTable = new LuaTable();
parentTable.set("parentKey", innerTable);

The output file should contain something like this:

table = {
    ["parentKey"] = {
         key = "value"
    }
}

I don't find any option to export the content of my parentTable to a file.

Thanks.

0

There are 0 answers