当前位置:网站首页>[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)
}
边栏推荐
- Advanced learning of MySQL -- Application -- index
- Valentine's Day - 9 jigsaw puzzles with deep love in wechat circle of friends
- C # learning notes: structure of CS documents
- Life cycle of instance variables, static variables and local variables
- Network byte order
- Basic editing specifications and variables of shell script
- Global and Chinese market of cell scrapers 2022-2028: Research Report on technology, participants, trends, market size and share
- Short math guide for latex by Michael downs
- MySQL advanced SQL statement (1)
- Chapter 3.4: starrocks data import - Flink connector and CDC second level data synchronization
猜你喜欢

MySQL advanced SQL statement (1)

Advanced learning of MySQL -- Application -- storage engine

Node solves cross domain problems

Unspeakable Prometheus monitoring practice

Basic editing specifications and variables of shell script
![Backpropagation formula derivation [Li Hongyi deep learning version]](/img/ef/f76eae39c4f8716a0030a60c85b09c.gif)
Backpropagation formula derivation [Li Hongyi deep learning version]

Yyds dry goods inventory hand-in-hand teach you the development of Tiktok series video batch Downloader

String & memory function (detailed explanation)

Www 2022 | taxoenrich: self supervised taxonomy complemented by Structural Semantics

C # learning notes: structure of CS documents
随机推荐
The reasons why QT fails to connect to the database and common solutions
C learning notes: C foundation - Language & characteristics interpretation
Career development direction
[untitled] the relationship between the metauniverse and digital collections
Chapter 3.4: starrocks data import - Flink connector and CDC second level data synchronization
7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
Comment la transformation numérique du crédit d'information de la Chine passe - t - elle du ciel au bout des doigts?
Global and Chinese market of handheld melanoma scanners 2022-2028: Research Report on technology, participants, trends, market size and share
Basic editing specifications and variables of shell script
Johnson–Lindenstrauss Lemma
The difference between int (1) and int (10)
I stepped on a foundation pit today
Contest3145 - the 37th game of 2021 freshman individual training match_ G: Score
7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
Advanced learning of MySQL -- Application -- storage engine
In yolov5, denselayer is used to replace focus, and the FPN structure is changed to bi FPN
Basé sur... Netcore Development blog Project Starblog - (14) Implementation of theme switching function
Measurement fitting based on Halcon learning [4] measure_ arc. Hdev routine
Contest3145 - the 37th game of 2021 freshman individual training match_ E: Eat watermelon
在尋求人類智能AI的過程中,Meta將賭注押向了自監督學習