From e46ce3aa0d75ce40337bdcc8957d2aa4c5d79812 Mon Sep 17 00:00:00 2001 From: Yermek Garifullanov Date: Wed, 21 Aug 2024 13:45:16 +1200 Subject: [PATCH] fix: json parsing issue with empty string --- Source/Immutable/Private/Immutable/ImmutableAnalytics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Immutable/Private/Immutable/ImmutableAnalytics.cpp b/Source/Immutable/Private/Immutable/ImmutableAnalytics.cpp index 1ca47ce..3763991 100644 --- a/Source/Immutable/Private/Immutable/ImmutableAnalytics.cpp +++ b/Source/Immutable/Private/Immutable/ImmutableAnalytics.cpp @@ -11,7 +11,7 @@ void UImmutableAnalytics::Track(EEventName EventName) FString FullData; - FJsonObjectConverter::UStructToJsonObjectString({ "unrealSdk", GetEventName(EventName), "" }, FullData); + FJsonObjectConverter::UStructToJsonObjectString({ "unrealSdk", GetEventName(EventName), "{}" }, FullData); JSConnector->CallJS(ImmutablePassportAction::TRACK, FullData, FImtblJSResponseDelegate::CreateUObject(this, &UImmutableAnalytics::OnTrackResponse)); }