@@ -34,11 +34,11 @@ static struct { Class isa; } placeholder; @interface OFDictionary () -- (OFString *)OF_JSONRepresentationWithOptions: (int)options +- (OFString *)of_JSONRepresentationWithOptions: (int)options depth: (size_t)depth; @end @interface OFDictionary_placeholder: OFDictionary @end @@ -614,22 +614,22 @@ 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 - depth: (size_t)depth +- (OFString *)of_JSONRepresentationWithOptions: (int)options + depth: (size_t)depth { OFMutableString *JSON = [OFMutableString stringWithString: @"{"]; void *pool = objc_autoreleasePoolPush(); OFEnumerator *keyEnumerator = [self keyEnumerator]; OFEnumerator *objectEnumerator = [self objectEnumerator]; @@ -655,15 +655,15 @@ @throw [OFInvalidArgumentException exception]; [JSON appendString: indentation]; [JSON appendString: @"\t"]; [JSON appendString: [key - OF_JSONRepresentationWithOptions: identifierOptions + of_JSONRepresentationWithOptions: identifierOptions depth: depth + 1]]; [JSON appendString: @": "]; [JSON appendString: [object - OF_JSONRepresentationWithOptions: options + of_JSONRepresentationWithOptions: options depth: depth + 1]]; if (++i < count) [JSON appendString: @",\n"]; else @@ -683,15 +683,15 @@ if (![key isKindOfClass: [OFString class]]) @throw [OFInvalidArgumentException exception]; [JSON appendString: [key - OF_JSONRepresentationWithOptions: identifierOptions + of_JSONRepresentationWithOptions: identifierOptions depth: depth + 1]]; [JSON appendString: @":"]; [JSON appendString: [object - OF_JSONRepresentationWithOptions: options + of_JSONRepresentationWithOptions: options depth: depth + 1]]; if (++i < count) [JSON appendString: @","];