字符串反序列化到JSON-Object
// Parsing Json-formatted string TSharedRef<TJsonReader<>> JsonReader = TJsonReaderFactory<>::Create(MappingJsonStr); TSharedPtr<FJsonObject> RootJsonObj = MakeShareable(new FJsonObject); if (FJsonSerializer::Deserialize(JsonReader, RootJsonObj)) { for(auto iter : RootJsonObj->Values) { Messages.Add(iter.Key, iter.Value->AsString()); } } else { UKismetSystemLibrary::PrintString(GetWorld(), TEXT("GetAllMessages::FJsonSerializer::Deserialize Failed!")); return false; }