JubeatPlus 3.9.11
Loading...
Searching...
No Matches
CJSONDeserializer.h
Go to the documentation of this file.
1
15
16#import <Foundation/Foundation.h>
17
18#import "CJSONScanner.h"
19
20NS_ASSUME_NONNULL_BEGIN
21
25@interface CJSONDeserializer : NSObject
26
31@property(nonatomic, strong, nullable) CJSONScanner *scanner;
32
39@property(nonatomic, strong, nullable) id nullObject;
40
47@property(nonatomic) NSUInteger allowedEncoding;
48
55@property(nonatomic) NSUInteger options;
56
62+ (instancetype)deserializer;
63
69- (instancetype)init;
70
82- (nullable id)deserialize:(nullable NSData *)data error:(NSError *__autoreleasing *)outError;
83
92- (nullable NSDictionary *)deserializeAsDictionary:(nullable NSData *)data
93 error:(NSError *__autoreleasing *)outError;
94
103- (nullable NSArray *)deserializeAsArray:(nullable NSData *)data
104 error:(NSError *__autoreleasing *)outError;
105
106@end
107
108NS_ASSUME_NONNULL_END
109
110// code: language=Objective-C
111// kate: hl Objective-C;
112// vim: set ft=objc :
TouchJSON's scanner, which does the actual parsing.
Turns JSON data into Foundation objects.
Definition CJSONDeserializer.h:26
CJSONScanner * scanner
The scanner that does the work, built on first use.
Definition CJSONDeserializer.m:29
NSUInteger allowedEncoding
Which text encoding the input is allowed to be in.
Definition CJSONDeserializer.m:49
NSUInteger options
Deserialisation options.
Definition CJSONDeserializer.h:55
instancetype deserializer()
A new autoreleased deserialiser.
Definition CJSONDeserializer.m:18
instancetype init()
Builds a deserialiser.
Definition CJSONDeserializer.m:23
id nullObject
What a JSON null becomes.
Definition CJSONDeserializer.m:37
Scans JSON text into Foundation objects.
Definition CJSONScanner.h:90