diff --git a/Sources/MapboxSearch/PublicAPI/Telemetry/FeedbackManager.swift b/Sources/MapboxSearch/PublicAPI/Telemetry/FeedbackManager.swift index a6e340982..3e78797ae 100644 --- a/Sources/MapboxSearch/PublicAPI/Telemetry/FeedbackManager.swift +++ b/Sources/MapboxSearch/PublicAPI/Telemetry/FeedbackManager.swift @@ -109,9 +109,10 @@ public class FeedbackManager { root["results"] = searchResults root["multiStepSearch"] = !isReproducible - let searchResultsJSON = (try? JSONSerialization.data(withJSONObject: root, options: [])).flatMap { String( - decoding: $0, as: UTF8.self - ) } + let searchResultsJSON = (try? JSONSerialization.data(withJSONObject: root, options: [])).flatMap { + String(data: $0, encoding: .utf8) + } + return searchResultsJSON }