diff --git a/CHANGELOG.md b/CHANGELOG.md index 4575698..976de7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,8 +34,8 @@ **IMPORTANT:** The `^` block MUST return an object with a class that can be serialized by JSONKit, otherwise the serialization will fail.
- - (NSData \*)JSONDataWithOptions:(JKSerializeOptionFlags)serializeOptions serializeUnsupportedClassesUsingBlock:(id(\^)(id object))block error:(NSError \*\*)error; - - (NSString \*)JSONStringWithOptions:(JKSerializeOptionFlags)serializeOptions serializeUnsupportedClassesUsingBlock:(id(\^)(id object))block error:(NSError \*\*)error; + - (NSData \*)JSONDataWithOptions:(JKSerializeOptionFlags)serializeOptions serializeUnsupportedClassesUsingBlock:(id(^)(id object))block error:(NSError \*\*)error; + - (NSString \*)JSONStringWithOptions:(JKSerializeOptionFlags)serializeOptions serializeUnsupportedClassesUsingBlock:(id(^)(id object))block error:(NSError \*\*)error;Example using the delegate way: @@ -90,7 +90,7 @@ [outputFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSSZZZ"]; jsonString = [array JSONStringWithOptions:encodeOptions - serializeUnsupportedClassesUsingBlock:\^id(id object) { + serializeUnsupportedClassesUsingBlock:^id(id object) { if([object isKindOfClass:[NSDate class]]) { return([outputFormatter stringFromDate:object]); } return(NULL); }