@@ -23,10 +23,15 @@ #import "OFInvalidArgumentException.h" #import "autorelease.h" #import "macros.h" + +@interface OFNull (OF_PRIVATE_CATEGORY) +- (OFString*)OF_JSONRepresentationWithOptions: (int)options + depth: (size_t)depth; +@end static OFNull *null = nil; @implementation OFNull + (void)initialize @@ -80,10 +85,23 @@ return [element autorelease]; } - (OFString*)JSONRepresentation +{ + return [self OF_JSONRepresentationWithOptions: 0 + depth: 0]; +} + +- (OFString*)JSONRepresentationWithOptions: (int)options +{ + return [self OF_JSONRepresentationWithOptions: options + depth: 0]; +} + +- (OFString*)OF_JSONRepresentationWithOptions: (int)options + depth: (size_t)depth { return @"null"; } - (OFDataArray*)messagePackRepresentation