mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-29 05:05:34 +08:00
Added objc formatting tag to paragraph in Handling Dynamic Nesting Attributes section
This commit is contained in:
@@ -527,11 +527,13 @@ This commonly shows up with JSON like the following:
|
||||
|
||||
We might have a User class like the following:
|
||||
|
||||
```objc
|
||||
@interface User : NSObject
|
||||
@property (nonatomic, retain) NSString* email
|
||||
@property (nonatomic, retain) NSString* username;
|
||||
@property (nonatomic, retain) NSString* favoriteAnimal;
|
||||
@end
|
||||
```
|
||||
|
||||
You will note that this JSON is problematic compared to our earlier examples because the `email` attribute's data
|
||||
exists as the key in a dictionary, rather than a value. We handle this by creating an object mapping and using a new
|
||||
|
||||
Reference in New Issue
Block a user