From 076041ba95d5c40affed7b4792fcb0f74bbebb4d Mon Sep 17 00:00:00 2001 From: Yermek Garifullanov <150758974+YermekG@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:32:42 +1200 Subject: [PATCH] fix: json parsing issue with empty string (#130) --- 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)); }