We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f380a7b + f816622 commit 264385fCopy full SHA for 264385f
1 file changed
Sources/CoreLocationCLI/main.swift
@@ -90,7 +90,8 @@ class Delegate: NSObject, CLLocationManagerDelegate {
90
91
switch format {
92
case .json:
93
- print(try! JSONEncoder().encode(formattedParts))
+ let output = try! JSONEncoder().encode(formattedParts)
94
+ print(String(data: output, encoding: .utf8)!)
95
case .string(let output):
96
print(formattedParts.reduce(output, { partialResult, keyValuePair in
97
partialResult.replacingOccurrences(of: "%\(keyValuePair.key)", with: keyValuePair.value ?? "")
0 commit comments