当前位置:网站首页>[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)
}
边栏推荐
- Global and Chinese market of contour projectors 2022-2028: Research Report on technology, participants, trends, market size and share
- LV1 Roche limit
- A fan summed up so many interview questions for you. There is always one you need!
- When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview
- Fudan released its first review paper on the construction and application of multimodal knowledge atlas, comprehensively describing the existing mmkg technology system and progress
- Sword finger offer 20 String representing numeric value
- Advanced learning of MySQL -- Application -- storage engine
- I stepped on a foundation pit today
- Global and Chinese market of small batteries 2022-2028: Research Report on technology, participants, trends, market size and share
- What is the intelligent monitoring system of sewage lifting pump station and does it play a big role
猜你喜欢
The automatic control system of pump station has powerful functions and diverse application scenarios
[Yugong series] February 2022 attack and defense world advanced question misc-84 (MySQL)
Yyds dry goods inventory override and virtual of classes in C
MySQL advanced (Advanced) SQL statement (I)
High level application of SQL statements in MySQL database (I)
VRRP+BFD
Node write API
Unity knapsack system (code to center and exchange items)
Unity controls the selection of the previous and next characters
Record a problem that soft deletion fails due to warehouse level error
随机推荐
Johnson–Lindenstrauss Lemma
The first spring of the new year | a full set of property management application templates are presented, and Bi construction is "out of the box"
The "two-way link" of pushing messages helps app quickly realize two-way communication capability
3D game modeling is in full swing. Are you still confused about the future?
In yolov5, denselayer is used to replace focus, and the FPN structure is changed to bi FPN
A. ABC
Keep an IT training diary 055- moral bitch
Yyds dry goods inventory it's not easy to say I love you | use the minimum web API to upload files
POSTECH | option compatible reward reverse reinforcement learning
Take you to master the formatter of visual studio code
Libcblas appears when installing opencv import CV2 so. 3:cannot open shared object file:NO such file or directory
There is no need to authorize the automatic dream weaving collection plug-in for dream weaving collection
Format character%* s
Will the memory of ParticleSystem be affected by maxparticles
Latex tips slash \backslash
[software implementation series] software implementation interview questions with SQL joint query diagram
Redis transaction
Advanced learning of MySQL -- Application -- index
Neo4j learning notes
Network communication basic kit -- IPv4 socket structure