Sample code for 30+ languages & platforms
Objective-C

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Objective-C Downloads

Objective-C
#import <CkoStringBuilder.h>

BOOL success = NO;

CkoStringBuilder *sb = [[CkoStringBuilder alloc] init];

success = [sb Append: @"{&quot;xyz&quot;: &quot;abc&quot;}"];

[sb EntityDecode];

// This is a test comment;
NSLog(@"%@",[sb GetAsString]);

// Output is:

// {"xyz": "abc"}