I have searched the web and particularly this:
and none of them work.
I am trying the simplest of tables as follows:
THIS IS THE INPUT.LUA FILE
{
["customers"] =
{
["name"] = "John Smith",
["age"] = 45
},
{
["name"] = "Susan Jones",
["age"] = 34
},
}
Where x = input.lua
And I have in my Lua an:-
if(type (x) == "table" then
dostuff()
else
return "this is not a table"
end
And all I get with all the deserializers is the "this is not a table".
I am now writing my own deserializer, which will have to handle all the escaping characters, and the beginning of tables, and the tracking of nested tables and the typing of values - why????
Am I a moron - which part of the table serialiazion routines did I misunderstand??