Sample code for 30+ languages & platforms
Dart

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Dart Downloads

Dart
import 'package:chilkat/chilkat.dart';

void main() {
  final sb = CkStringBuilder();

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

  sb.entityDecode();

  // This is a test comment;
  print(sb.getAsString());

  // Output is:

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