File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
APIService/Sources/Support Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ extension JSONConvertible {
17
17
return nil
18
18
}
19
19
20
- let options : JSONSerialization . WritingOptions = prettyPrinted ? [ . prettyPrinted] : [ ]
20
+ let options : JSONSerialization . WritingOptions = prettyPrinted ? [ . prettyPrinted, . sortedKeys ] : [ . sortedKeys ]
21
21
22
22
do {
23
23
let jsonData = try JSONSerialization . data ( withJSONObject: self , options: options)
@@ -45,7 +45,7 @@ extension Data: JSONConvertible {
45
45
return self . toUTF8String ( maxLength: maxLength)
46
46
}
47
47
48
- let options : JSONSerialization . WritingOptions = prettyPrinted ? [ . prettyPrinted, . sortedKeys] : [ ]
48
+ let options : JSONSerialization . WritingOptions = prettyPrinted ? [ . prettyPrinted, . sortedKeys] : [ . sortedKeys ]
49
49
50
50
do {
51
51
let jsonData = try JSONSerialization . data ( withJSONObject: jsonObject, options: options)
You can’t perform that action at this time.
0 commit comments