JubeatPlus 3.9.11
Loading...
Searching...
No Matches
NSDictionary(JSONExtensions) Category Reference

One-call JSON deserialisation vending a Foundation object. More...

#include <NSDictionary+JSONExtensions.h>

Class Methods

(nullable id) + dictionaryWithJSONData:error:
 Deserialises JSON data via a fresh CJSONDeserializer.
(nullable id) + dictionaryWithJSONString:error:
 Deserialises a JSON string by encoding it as UTF-8 and deferring to dictionaryWithJSONData:error:.

Detailed Description

One-call JSON deserialisation vending a Foundation object.

Method Documentation

◆ dictionaryWithJSONData:error:

+ (nullable id) dictionaryWithJSONData: (nullable NSData *) data
error: (NSError **) error 

Deserialises JSON data via a fresh CJSONDeserializer.

Parameters
dataThe JSON text.
errorOut-parameter for a parse failure; may be NULL.
Returns
The parsed object, autoreleased, or nil on failure.
Ghidra address:
0x633f8

◆ dictionaryWithJSONString:error:

+ (nullable id) dictionaryWithJSONString: (nullable NSString *) string
error: (NSError **) error 

Deserialises a JSON string by encoding it as UTF-8 and deferring to dictionaryWithJSONData:error:.

Parameters
stringThe JSON text.
errorOut-parameter for a parse failure; may be NULL.
Returns
The parsed object, autoreleased, or nil on failure.
Ghidra address:
0x63488

The documentation for this category was generated from the following file: