Java
Java
Decode HTML Entity Encoded JSON
See more JSON Examples
Decodes an HTML entity encoded string to JSON.Chilkat Java Downloads
import com.chilkatsoft.*;
public class ChilkatExample {
static {
try {
System.loadLibrary("chilkat");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}
public static void main(String argv[])
{
boolean success = false;
CkStringBuilder sb = new CkStringBuilder();
success = sb.Append("{"xyz": "abc"}");
sb.EntityDecode();
// This is a test comment;
System.out.println(sb.getAsString());
// Output is:
// {"xyz": "abc"}
}
}