Skip to content

Commit 15c6800

Browse files
committed
updated README
1 parent a279750 commit 15c6800

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

README.md

-22
Original file line numberDiff line numberDiff line change
@@ -133,28 +133,6 @@ firstName = decoder[5]["wrongKey"]["MoreWrong"].string
133133

134134
## Array and Dictionary support
135135

136-
There is two ways to access Arrays and Dictionary. The first is the convenience methods.
137-
138-
```javascript
139-
{
140-
"scopes" : ["Bakersfield", "California", "USA"]
141-
}
142-
```
143-
144-
Now for the Swift object.
145-
```swift
146-
struct Scopes : JSONJoy {
147-
var scopes: Array<String>?
148-
init() {
149-
}
150-
init(_ decoder: JSONDecoder) {
151-
decoder.getArray(&scopes) //pass the optional array by reference, it will be allocated if it is not and filled
152-
}
153-
}
154-
```
155-
156-
The second option is useful for embedded objects.
157-
158136
```javascript
159137
{
160138
"addresses": [

0 commit comments

Comments
 (0)