Sample code for 30+ languages & platforms
Lianja

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

loSb = createobject("CkStringBuilder")

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

loSb.EntityDecode()

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

// Output is:

// {"xyz": "abc"}


release loSb