Easy use Json Blueprint Utilities,Support Async processing of large JSON files.
I’ve been using your plugin, but havn’t had any luck actually deserializing any json from a string into a ustruct using the StringToJsonAsync function.
When it runs your function:
bool UYzgJsonBlueprintFunctionLibrary::FromString(
const FString& JsonString,
FJsonObjectWrapper& JsonObject)
{
Clear(JsonObject);
TSharedPtr<FJsonValue> JsonValue;
TSharedRef<TJsonReader<>> JsonReader = TJsonReaderFactory<>::Create(JsonString);
if(FJsonSerializer::Deserialize(JsonReader, JsonValue))
{
InternalSetJsonValue(JsonObject, JsonValue);
return true;
}
return false;
}
it always returns true just fine, fills the JsonObject with values, but then once it gets to UJsonAsyncAction::ExecuteCompleted(bool bSuccess, FJsonObjectWrapper& JsonObject) the JsonObject is empty, there are no values in it.
If I build json objects from the same string using my own code it works fine.
I think its losing the data when it calls
CompleteDelegate.ExecuteIfBound(true, JsonObject);