当前位置:网站首页>[UE4] parse JSON string
[UE4] parse JSON string
2022-07-04 02:39:00 【Mr. Baizi】
API
Reader:
TSharedRef< TJsonReader<> > Reader = TJsonReaderFactory<>::Create(JsonStr);
rRoot:
TSharedPtr rRoot;
String parsing interface
bool bSuccess = FJsonSerializer::Deserialize(Reader, rRoot)
if(bSuccess)
{
int32 value;
// Through this interface Get the corresponding key int32 int64 double value
rRoot->TryGetNumberField(TEXT("key"), value)
// The interface returns double Type value
double value = FJsonObject::GetNumberField("key")
// If key The corresponding is One TArray
const TArray<TSharedPtr<FJsonValue>>* list;
rRoot->TryGetArrayField(TEXT("key"), list)
// And then according to list The actual situation of the neutron term is being analyzed
(*list)[0]->AsObject() // Turn into FJsonObject
(*list)[0]->AsArray() // Turn into TArray
// If key The corresponding is One Json
const TSharedPtr<FJsonObject>*& jsonObject
rRoot->TryGetObjectField(TEXT("key"), jsonObject)
}
边栏推荐
- Unity writes a character controller. The mouse controls the screen to shake and the mouse controls the shooting
- Méthode de calcul de la connexion MSSQL de la carte esp32c3
- Hunan University | robust Multi-Agent Reinforcement Learning in noisy environment
- [leetcode daily question] a single element in an ordered array
- Bacteriostatic circle scanning correction template
- Ai aide à la recherche de plagiat dans le design artistique! L'équipe du professeur Liu Fang a été embauchée par ACM mm, une conférence multimédia de haut niveau.
- Override and virtual of classes in C #
- Solve the problem that the tabbar navigation at the bottom of vantui does not correspond to the page (window.loading.hash)
- Contest3145 - the 37th game of 2021 freshman individual training match_ G: Score
- Global and Chinese markets of advanced X-ray inspection system (Axi) in PCB 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

Li Chuang EDA learning notes 13: electrical network for drawing schematic diagram

The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult
![[software implementation series] software implementation interview questions with SQL joint query diagram](/img/8b/8718fea82f83a6169ea5d8c2e5b645.jpg)
[software implementation series] software implementation interview questions with SQL joint query diagram

MySQL advanced (Advanced) SQL statement (I)

MySQL workbench use

WP collection plug-in free WordPress collection hang up plug-in

Mysql-15 aggregate function

Node write API

I stepped on a foundation pit today

On Valentine's day, I code a programmer's exclusive Bing Dwen Dwen (including the source code for free)
随机推荐
在尋求人類智能AI的過程中,Meta將賭注押向了自監督學習
[software implementation series] software implementation interview questions with SQL joint query diagram
Contest3145 - the 37th game of 2021 freshman individual training match_ J: Eat radish
Data collection and summary
Measurement fitting based on Halcon learning [4] measure_ arc. Hdev routine
A fan summed up so many interview questions for you. There is always one you need!
Keepalived set the master not to recapture the VIP after fault recovery (it is invalid to solve nopreempt)
基於.NetCore開發博客項目 StarBlog - (14) 實現主題切換功能
查詢效率提昇10倍!3種優化方案,幫你解决MySQL深分頁問題
Talking about custom conditions and handling errors in MySQL Foundation
Problems and solutions of several concurrent scenarios of redis
17. File i/o buffer
Keep an IT training diary 055- moral bitch
Www 2022 | taxoenrich: self supervised taxonomy complemented by Structural Semantics
7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
60 year old people buy medical insurance and recommend a better product
Site favorites
A brief talk on professional modeler: the prospect and professional development of 3D game modeling industry in China
Take you to master the formatter of visual studio code
Résumé: entropie, énergie libre, symétrie et dynamique dans le cerveau