mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Improve explanation why the sortedKeys JSON option is recommended
This commit is contained in:
1 parent
f925d7e3d4
commit
bb90ea0259
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user