Yini
1.0
|
Facade for DBJsonWriter/DBJsonParser. More...
#import <DBJSON.h>
Public Member Functions | |
(id) | - fragmentWithString:error: |
Return the fragment represented by the given string. | |
(id) | - objectWithString:error: |
Return the object represented by the given string. | |
(id) | - objectWithString:allowScalar:error: |
Parse the string and return the represented object (or scalar) | |
(NSString *) | - stringWithObject:error: |
Return JSON representation of an array or dictionary. | |
(NSString *) | - stringWithFragment:error: |
Return JSON representation of any legal JSON value. | |
(NSString *) | - stringWithObject:allowScalar:error: |
Return JSON representation (or fragment) for the given object. | |
![]() | |
(void) | - addErrorWithCode:description: |
(void) | - clearErrorTrace |
![]() | |
(id) | - objectWithString: |
Return the object represented by the given string. | |
![]() | |
(NSString *) | - stringWithObject: |
Return JSON representation (or fragment) for the given object. |
Additional Inherited Members | |
![]() | |
NSMutableArray * | errorTrace |
NSUInteger | depth |
![]() | |
NSUInteger | maxDepth |
The maximum recursing depth. | |
NSArray * | errorTrace |
Return an error trace, or nil if there was no errors. | |
![]() | |
BOOL | humanReadable |
Whether we are generating human-readable (multiline) JSON. | |
BOOL | sortKeys |
Whether or not to sort the dictionary keys in the output. |
Facade for DBJsonWriter/DBJsonParser.
Requests are forwarded to instances of DBJsonWriter and DBJsonParser.
- (id) fragmentWithString: | (NSString *) | jsonrep | |
error: | (NSError **) | error | |
Return the fragment represented by the given string.
- (id) objectWithString: | (id) | value | |
allowScalar: | (BOOL) | x | |
error: | (NSError **) | error | |
Parse the string and return the represented object (or scalar)
- (id) objectWithString: | (NSString *) | jsonrep | |
error: | (NSError **) | error | |
Return the object represented by the given string.
- (NSString*) stringWithFragment: | (id) | value | |
error: | (NSError **) | error | |
Return JSON representation of any legal JSON value.
- (NSString*) stringWithObject: | (id) | value | |
allowScalar: | (BOOL) | x | |
error: | (NSError **) | error | |
Return JSON representation (or fragment) for the given object.
- (NSString*) stringWithObject: | (id) | value | |
error: | (NSError **) | error | |
Return JSON representation of an array or dictionary.