Sample code for 30+ languages & platforms
Java

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Java Downloads

Chilkat2 Java
import com.chilkatsoft.chilkat2.StringBuilder;

public class ChilkatExample {

    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();

        sb.append("{"xyz": "abc"}");

        sb.entityDecode();

        // This is a test comment;
        System.out.println(sb.getAsString());

        // Output is:

        // {"xyz": "abc"}
    }
}