Skip to content

Commit fcb5c90

Browse files
committed
Update README
1 parent 76a1f16 commit fcb5c90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ If you want to load image into `UIImageView` or `NSImageView`, then we also have
277277

278278
Most of the time, our use case is to fetch some json from backend, display it while saving the json to storage for future uses. If you're using libraries like [Alamofire](https://github.com/Alamofire/Alamofire) or [Malibu](https://github.com/hyperoslo/Malibu), you mostly get json in the form of dictionary, string, or data.
279279

280-
While `Storage` can persist `String` or `Data`, we recommend persisting the strong typed objects, since those are the objects that you will use to display in UI. Furthermore, if the json data can't be converted to strongly typed objects, what's the point of saving it ? 😉
280+
`Storage` can persist `String` or `Data`. You can even save json to `Storage` using `JSONArrayWrapper` and `JSONDictionaryWrapper`, but we prefer persisting the strong typed objects, since those are the objects that you will use to display in UI. Furthermore, if the json data can't be converted to strongly typed objects, what's the point of saving it ? 😉
281281

282-
You can use `JSONDecoder` to decode json dictionary, string or data to objects.
282+
You can use these extensions on `JSONDecoder` to decode json dictionary, string or data to objects.
283283

284284
```swift
285285
let user = JSONDecoder.decode(jsonString, to: User.self)

0 commit comments

Comments
 (0)