Sample code for 30+ languages & platforms
React Native

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat React Native Downloads

React Native
import { StringBuilder } from '@chilkat/react-native'

function chilkatExample() {
  const sb = new StringBuilder();

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

  sb.entityDecode();

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

  // Output is:

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