Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/4.18-update'
Browse files Browse the repository at this point in the history
  • Loading branch information
getnamo committed Nov 3, 2017
2 parents 26d5060 + 9287a29 commit 2b118c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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",
Expand Down
10 changes: 9 additions & 1 deletion Source/SIOJson/Private/SIOJsonValue.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 2b118c4

Please sign in to comment.