Download
(9 Kb)
Download
Updated: 01/31/24 04:16 AM
Compatibility:
Endless Archive (9.2.5)
Updated:01/31/24 04:16 AM
Created:01/31/24 04:16 AM
Monthly downloads:1,384
Total downloads:3,425
Favorites:2
MD5:
LibJson
Version: 1.0
by: akamatsu02 [More]
Encode an Object:
Code:
LibJson.encode(<object>)
Decode a Json String:
Code:
LibJson.decode(<JSON string>)
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.



Category Jump: