Sample code for 30+ languages & platforms
Visual FoxPro

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL lnSuccess
LOCAL loSb

lnSuccess = 0

loSb = CreateObject('Chilkat.StringBuilder')

lnSuccess = loSb.Append("{"xyz": "abc"}")

loSb.EntityDecode()

* This is a test comment;
? loSb.GetAsString()

* Output is:

* {"xyz": "abc"}

RELEASE loSb