[SOLVED] Convert JSON to Lua

Solved!

The correct way to do it is as follows:

local jsonString = '{"foo":"bar"}'

print(json.decode(jsonString).foo) -- Output: bar