Commit 69d19f2
committed
More error handling when parsing book.json
When the JSON contains a duplicate key, JSONObjectWithData on iOS 5.1 will return nil. Unfortunately, the returned error is not very helpful, but it's at least better than the previous version of the code (which was printing the error in the wrong place).
See Simbul#904.1 parent 21d5210 commit 69d19f2
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
114 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| |||
0 commit comments