Sample code for 30+ languages & platforms
Lua

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Lua Downloads

Lua
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"}