@@ -36,11 +36,11 @@ static struct { Class isa; } placeholder; @interface OFArray () -- (OFString *)OF_JSONRepresentationWithOptions: (int)options +- (OFString *)of_JSONRepresentationWithOptions: (int)options depth: (size_t)depth; @end @interface OFArray_placeholder: OFArray @end @@ -586,21 +586,21 @@ return [element autorelease]; } - (OFString *)JSONRepresentation { - return [self OF_JSONRepresentationWithOptions: 0 + return [self of_JSONRepresentationWithOptions: 0 depth: 0]; } - (OFString *)JSONRepresentationWithOptions: (int)options { - return [self OF_JSONRepresentationWithOptions: options + return [self of_JSONRepresentationWithOptions: options depth: 0]; } -- (OFString *)OF_JSONRepresentationWithOptions: (int)options +- (OFString *)of_JSONRepresentationWithOptions: (int)options depth: (size_t)depth { OFMutableString *JSON = [OFMutableString stringWithString: @"["]; void *pool = objc_autoreleasePoolPush(); size_t i, count = [self count]; @@ -618,11 +618,11 @@ void *pool2 = objc_autoreleasePoolPush(); [JSON appendString: indentation]; [JSON appendString: @"\t"]; [JSON appendString: [object - OF_JSONRepresentationWithOptions: options + of_JSONRepresentationWithOptions: options depth: depth + 1]]; if (++i < count) [JSON appendString: @",\n"]; else @@ -636,11 +636,11 @@ i = 0; for (id object in self) { void *pool2 = objc_autoreleasePoolPush(); [JSON appendString: [object - OF_JSONRepresentationWithOptions: options + of_JSONRepresentationWithOptions: options depth: depth + 1]]; if (++i < count) [JSON appendString: @","];