Sample code for 30+ languages & platforms
PowerBuilder

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat PowerBuilder Downloads

PowerBuilder
integer li_rc
integer li_Success
oleobject loo_Sb

li_Success = 0

loo_Sb = create oleobject
li_rc = loo_Sb.ConnectToNewObject("Chilkat.StringBuilder")
if li_rc < 0 then
    destroy loo_Sb
    MessageBox("Error","Connecting to COM object failed")
    return
end if

li_Success = loo_Sb.Append("{&quot;xyz&quot;: &quot;abc&quot;}")

loo_Sb.EntityDecode()

// This is a test comment;
Write-Debug loo_Sb.GetAsString()

// Output is:

// {"xyz": "abc"}


destroy loo_Sb