JavaScript
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.
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"}