Sample code for 30+ languages & platforms
Xbase++

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oSb

nSuccess := 0

oSb := CreateObject("Chilkat.StringBuilder")

nSuccess := oSb:Append("{"xyz": "abc"}")

oSb:EntityDecode()

//  This is a test comment;
? oSb:GetAsString()

//  Output is:

//  {"xyz": "abc"}

oSb:destroy()