Improve explanation why the sortedKeys JSON option is recommended

This commit is contained in:
Gwendal Roué committed 2018-08-19 22:40:51 +02:00
1 parent f925d7e3d4
commit bb90ea0259
1 file changed
+1 -1
+1 -1
View File
@@ -2706,7 +2706,7 @@ struct Player: Codable, FetchableRecord, PersistableRecord {
}
```
> :bulb: **Tip**: Make sure you set the JSONEncoder `sortedKeys` option, available from iOS 11.0+, macOS 10.13+, and watchOS 4.0+. This option makes sure that the JSON output is stable, and this helps [Record Comparison] yield the expected results.
> :bulb: **Tip**: Make sure you set the JSONEncoder `sortedKeys` option, available from iOS 11.0+, macOS 10.13+, and watchOS 4.0+. This option makes sure that the JSON output is stable. This stability is required for [Record Comparison] to work as expected, and database observation tools such as [FetchedRecordsController](#fetchedrecordscontroller) or [RxGRDB](http://github.com/RxSwiftCommunity/RxGRDB) to accurately recognize changed records.
### The userInfo Dictionary