Force JSONEncoder output formatting with .sortedKeys
This commit is contained in:
1 parent
756de4f1de
commit
6a5acec9df
2 files changed
+2
-2
No files matched your search
@@ -67,7 +67,7 @@ struct ParsedImage {
|
||||
|
||||
func generateContentJson(isVector: Bool) -> String? {
|
||||
let encoder = JSONEncoder()
|
||||
encoder.outputFormatting = .prettyPrinted
|
||||
encoder.outputFormatting = [.prettyPrinted, .sortedKeys]
|
||||
|
||||
let imageContent = generateImageContent(isVector: isVector)
|
||||
|
||||
|
||||
Reference in new issue
Block a user