Lua
Lua
Decode HTML Entity Encoded JSON
See more JSON Examples
Decodes an HTML entity encoded string to JSON.Chilkat Lua Downloads
local chilkat = require("chilkat")
local sb = chilkat.StringBuilder.new()
local success = sb:append("{"xyz": "abc"}")
sb:entity_decode()
-- This is a test comment;
print(sb:get_as_string())
-- Output is:
-- {"xyz": "abc"}