Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
clayellis committed Jul 20, 2016
1 parent 368bf11 commit 36fcaab
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,18 +233,18 @@ You can also use key paths (for both dictionary keys and array indexes) to unbox

```json
{
"name": "John",
"age": 27,
"activities": {
"running": {
"distance": 300
}
},
"devices": [
"Macbook Pro",
"iPhone",
"iPad"
]
"name": "John",
"age": 27,
"activities": {
"running": {
"distance": 300
}
},
"devices": [
"Macbook Pro",
"iPhone",
"iPad"
]
}
```

Expand All @@ -270,8 +270,8 @@ You can also use key paths to directly unbox nested JSON structures. This is use

```json
{
"company": {
"name": "Spotify",
"company": {
"name": "Spotify",
},
"jobOpenings": [
{
Expand Down Expand Up @@ -310,7 +310,7 @@ extension Company: Unboxable {
}
```

```
```swift
let company: Company = try Unbox(json, at: "company")
let jobOpenings: [JobOpening] = try Unbox(json, at: "jobOpenings")
let featuredOpening: JobOpening = try Unbox(json, at: "jobOpenings.0")
Expand Down

0 comments on commit 36fcaab

Please sign in to comment.