Basically i want to convert a .json file, into a Lua table, i'm using this tutorial ( probably out of date ), but i'm getting the following error:
attempt to call global 'jsonFile' (a nil value)
menu.lua
local json = require ("json")
local tableJson = json.decode( jsonFile("teste.json") )
teste.json
{
"name": "Jack (\"Bee\") Nimble",
"format": {
"shape": "rect",
"width": 1920,
"height": 1080,
"interlace": false,
"framerate": 24
}
}
I have looked for "jsonFile", on the official API reference, but there's nothing there, and i did not found any way to do this.
Thanks in advance for the help!