NSString(ALJSONExtras) Category Reference

Declared in ALJSONUtilities.h

Overview

Methods to convert an NSString to a valid JSON object (dictionary or array)

– toJSONObject:

NSError object that is set when the JSON conversion encountered errors

- (id _Nullable)toJSONObject:(NSError *_Nullable *_Nullable)error

Parameters

error

NSError object that is set when the JSON conversion encountered errors

Return Value

the JSON object, or null

Declared In

ALJSONUtilities.h

– asJSONObject

Returns a JSON object (could be an NSDictionary or an NSArray) converted from the NSData object, or null, if conversion is not possible. No error value is set in this version.

- (id _Nullable)asJSONObject

Return Value

the JSON object

Declared In

ALJSONUtilities.h