diff --git a/SocketIOClient.uplugin b/SocketIOClient.uplugin index b42029cd..823e03e1 100644 --- a/SocketIOClient.uplugin +++ b/SocketIOClient.uplugin @@ -1,7 +1,7 @@ { "FileVersion": 3, "Version": 1, - "VersionName": "0.6.4", + "VersionName": "0.6.5", "FriendlyName": "Socket.IO Client", "Description": "Real-time networking library Socket.IO Client usable from blueprints and c++.", "Category": "Networking", diff --git a/Source/SIOJson/Private/SIOJsonValue.cpp b/Source/SIOJson/Private/SIOJsonValue.cpp index 56188e7d..93a558d2 100644 --- a/Source/SIOJson/Private/SIOJsonValue.cpp +++ b/Source/SIOJson/Private/SIOJsonValue.cpp @@ -249,7 +249,15 @@ FString USIOJsonValue::AsString() const return FString(); } - return JsonVal->AsString(); + //Auto-convert non-strings instead of getting directly + if (JsonVal->Type != EJson::String) + { + return EncodeJson(); + } + else + { + return JsonVal->AsString(); + } } bool USIOJsonValue::AsBool() const