Yini  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
DBJSON Class Reference

Facade for DBJsonWriter/DBJsonParser. More...

#import <DBJSON.h>

Inheritance diagram for DBJSON:
DBJsonBase <DBJsonParser> <DBJsonWriter>

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.
- Public Member Functions inherited from DBJsonBase
(void) - addErrorWithCode:description:
(void) - clearErrorTrace
- Public Member Functions inherited from
(id) - objectWithString:
 Return the object represented by the given string.
- Public Member Functions inherited from
(NSString *) - stringWithObject:
 Return JSON representation (or fragment) for the given object.

Additional Inherited Members

- Protected Attributes inherited from DBJsonBase
NSMutableArray * errorTrace
NSUInteger depth
- Properties inherited from DBJsonBase
NSUInteger maxDepth
 The maximum recursing depth.
NSArray * errorTrace
 Return an error trace, or nil if there was no errors.
- Properties inherited from
BOOL humanReadable
 Whether we are generating human-readable (multiline) JSON.
BOOL sortKeys
 Whether or not to sort the dictionary keys in the output.

Detailed Description

Facade for DBJsonWriter/DBJsonParser.

Requests are forwarded to instances of DBJsonWriter and DBJsonParser.

Member Function Documentation

- (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.


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