@@ -88,7 +88,7 @@ you dont have to do anything :). `SHModelObject` automatically handles it. check
88
88
89
89
for example, following JSON
90
90
91
- ```
91
+ ``` json
92
92
93
93
{
94
94
"name" : " Shan Ul Haq" ,
@@ -103,7 +103,7 @@ for example, following JSON
103
103
```
104
104
will be automatically parsed into following object:
105
105
106
- ```
106
+ ``` objective-c
107
107
@interface Person : SHModelObject
108
108
109
109
@property (nonatomic , strong ) NSString * name;
@@ -114,7 +114,7 @@ will be automatically parsed into following object:
114
114
```
115
115
where Image object is also a ` SHModelObject `
116
116
117
- ```
117
+ ``` objective-c
118
118
@interface Image : SHModelObject
119
119
120
120
@property (nonatomic ) int imageId;
@@ -130,7 +130,7 @@ similar to parsing `SHModelObject` instance variables, arrays can be handled too
130
130
131
131
for example, if you have following JSON
132
132
133
- ```
133
+ ``` json
134
134
{
135
135
"aKey" : " aValue" ,
136
136
"arrayOfModels" : [
@@ -154,7 +154,7 @@ for example, if you have following JSON
154
154
```
155
155
which translates to following objects.
156
156
157
- ```
157
+ ``` objective-c
158
158
@interface MyObject : SHModelObject
159
159
160
160
@property (nonatomic , strong ) NSString * aKey;
@@ -175,7 +175,7 @@ which translates to following objects.
175
175
176
176
you can convert json like this:
177
177
178
- ```
178
+ ``` objective-c
179
179
// key is the variable name and value is the class name.
180
180
NSDictionary *mappingDictionary = @{@"arrayOfModels" : "AModel"};
181
181
0 commit comments