33 #import <Foundation/Foundation.h>
65 - (void)writer:(
SBJsonStreamWriter*)writer appendBytes:(const
void *)bytes length:(NSUInteger)length;
86 NSMutableDictionary *cache;
90 @property (nonatomic, readonly, strong) NSMutableArray *stateStack;
96 @property (unsafe_unretained) id<SBJsonStreamWriterDelegate> delegate;
130 @property (copy) NSComparator sortKeysComparator;
133 @property (copy) NSString *error;
139 - (BOOL)writeObject:(NSDictionary*)dict;
145 - (BOOL)writeArray:(NSArray *)array;
151 - (BOOL)writeObjectOpen;
157 - (BOOL)writeObjectClose;
162 - (BOOL)writeArrayOpen;
167 - (BOOL)writeArrayClose;
177 - (BOOL)writeBool:(BOOL)x;
182 - (BOOL)writeNumber:(NSNumber*)n;
187 - (BOOL)writeString:(NSString*)s;
192 - (BOOL)writeValue:(
id)v;
193 - (void)appendBytes:(const
void *)bytes length:(NSUInteger)length;
BOOL humanReadable
Whether we are generating human-readable (multiline) JSON.
Definition: SBJsonStreamWriter.h:115
Enable JSON writing for non-native objects.
Definition: SBJsonStreamWriter.h:36
The Stream Writer class.
Definition: SBJsonStreamWriter.h:85
BOOL sortKeys
Whether or not to sort the dictionary keys in the output.
Definition: SBJsonStreamWriter.h:123
id proxyForJson()
Allows generation of JSON for otherwise unsupported classes.
Definition: SBJsonStreamWriter.h:191
Definition: SBJsonStreamWriter.h:63
Definition: SBJsonStreamWriterState.h:37
NSUInteger maxDepth
The maximum recursing depth.
Definition: SBJsonStreamWriter.h:105