YAJLGenOptionsIncludeNone -> YAJLGenOptionsIncludeUnsupportedTypes thus enabling NSURL properties to be serialized as string.

This commit is contained in:
Rémy SAISSY
2011-06-30 09:40:41 +02:00
parent 537a9d2fd1
commit 69460fdc4f
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@
}
- (NSString*)stringFromObject:(id)object error:(NSError **)error {
return [object yajl_JSONString];
return [object yajl_JSONStringWithOptions:YAJLGenOptionsIncludeUnsupportedTypes indentString:@" "];
}
@end