Sample code for 30+ languages & platforms
JavaScript

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat v11.4.0 or greater.
JavaScript
var success = false;

var sb = new CkStringBuilder();

success = sb.Append("{"xyz": "abc"}");

sb.EntityDecode();

// This is a test comment;
console.log(sb.GetAsString());

// Output is:

// {"xyz": "abc"}