Solved!
The correct way to do it is as follows:
local jsonString = '{"foo":"bar"}'
print(json.decode(jsonString).foo) -- Output: bar
Solved!
The correct way to do it is as follows:
local jsonString = '{"foo":"bar"}'
print(json.decode(jsonString).foo) -- Output: bar