Couchbase Lite
Objective-C API for iOS and Mac OS
CBLJSON.h File Reference
#import "CBLBase.h"

Go to the source code of this file.

Classes

class  CBLJSON
 Useful extensions for JSON serialization/parsing. More...
 
class  CBLLazyArrayOfJSON
 Wrapper for an NSArray of JSON data, that avoids having to parse the data if it's not used. More...
 
protocol  <CBLJSONEncoding >
 Protocol for classes whose instances can encode themselves as JSON. More...
 

Typedefs

typedef NSUInteger CBLJSONReadingOptions
 
typedef NSUInteger CBLJSONWritingOptions
 
typedef void(^ CBLOnMutateBlock) ()
 

Enumerations

enum  { CBLJSONReadingMutableContainers = (1UL << 0), CBLJSONReadingMutableLeaves = (1UL << 1), CBLJSONReadingAllowFragments = (1UL << 2) }
 Identical to the corresponding NSJSON option flags. More...
 
enum  { CBLJSONWritingPrettyPrinted = (1UL << 0), CBLJSONWritingAllowFragments = (1UL << 23) }
 Identical to the corresponding NSJSON option flags, with one addition. More...
 

Typedef Documentation

◆ CBLJSONReadingOptions

typedef NSUInteger CBLJSONReadingOptions

◆ CBLJSONWritingOptions

typedef NSUInteger CBLJSONWritingOptions

◆ CBLOnMutateBlock

typedef void(^ CBLOnMutateBlock) ()

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Identical to the corresponding NSJSON option flags.

Enumerator
CBLJSONReadingMutableContainers 
CBLJSONReadingMutableLeaves 
CBLJSONReadingAllowFragments 

◆ anonymous enum

anonymous enum

Identical to the corresponding NSJSON option flags, with one addition.

Enumerator
CBLJSONWritingPrettyPrinted 
CBLJSONWritingAllowFragments 

Allows input to be an NSString or NSValue.