I recommend wrapping the decode function call in a pcall to prevent ui errors:
Code:
local decoded = {}
if pcall(function() decoded = LibJson.decode(<JSON string>) end) then
-- valid JSON that can be used here
else
-- the JSON is invalid
end
There have been no comments posted to this file. Be the first to add one.