Sample code for 30+ languages & platforms
Go

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Go Downloads

Go
    success := false

    sb := chilkat.NewStringBuilder()

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

    sb.EntityDecode()

    // This is a test comment;
    fmt.Println(*sb.GetAsString())

    // Output is:

    // {"xyz": "abc"}

    sb.DisposeStringBuilder()