Add support and test coverage for serializing Boolean properties to JSON as true/false instead of numbers. closes #920, #827

This commit is contained in:
Blake Watters
2012-11-08 23:41:19 -05:00
parent b723788fce
commit e109036683
11 changed files with 231 additions and 67 deletions

View File

@@ -50,6 +50,7 @@
@property (nonatomic, strong) NSSet *friends;
@property (nonatomic, strong) NSOrderedSet *friendsInTheOrderWeMet;
@property (nonatomic, strong) NSNumber *isHappy;
@end

View File

@@ -38,6 +38,7 @@
@dynamic cats;
@dynamic catIDs;
@dynamic catsInOrderByAge;
@dynamic isHappy;
@dynamic house;
@dynamic landlord;

View File

@@ -21,14 +21,7 @@
#import <Foundation/Foundation.h>
#import "RKMappableAssociation.h"
@interface RKMappableObject : NSObject {
NSDate *_dateTest;
NSNumber *_numberTest;
NSString *_stringTest;
NSURL *_urlTest;
RKMappableAssociation *_hasOne;
NSSet *_hasMany;
}
@interface RKMappableObject : NSObject
@property (nonatomic, strong) NSDate *dateTest;
@property (nonatomic, strong) NSNumber *numberTest;
@@ -36,5 +29,6 @@
@property (nonatomic, strong) NSURL *urlTest;
@property (nonatomic, strong) RKMappableAssociation *hasOne;
@property (nonatomic, strong) NSSet *hasMany;
@property (nonatomic, assign) BOOL isValid;
@end