3210d65921299d4f3ba31d53031ca4c95a9db2e8
[atutor.git] / mods / atsocial_iphone_app / TouchJSON / JSON / CJSONScanner.h
1 //
2 //  CJSONScanner.h
3 //  TouchJSON
4 //
5 //  Created by Jonathan Wight on 12/07/2005.
6 //  Copyright 2005 Toxic Software. All rights reserved.
7 //
8
9 #import "CDataScanner.h"
10
11 @interface CJSONScanner : CDataScanner {
12         BOOL scanComments;
13         NSCharacterSet *notQuoteCharacters;
14         NSCharacterSet *whitespaceCharacterSet;
15 }
16
17 @property (readwrite, assign) BOOL scanComments;
18
19 - (BOOL)scanJSONObject:(id *)outObject error:(NSError **)outError;
20 - (BOOL)scanJSONDictionary:(NSDictionary **)outDictionary error:(NSError **)outError;
21 - (BOOL)scanJSONArray:(NSArray **)outArray error:(NSError **)outError;
22 - (BOOL)scanJSONStringConstant:(NSString **)outStringConstant error:(NSError **)outError;
23 - (BOOL)scanJSONNumberConstant:(NSNumber **)outNumberConstant error:(NSError **)outError;
24 - (void)skipJSONWhitespace;
25
26 @end