This a sample JSON File:
{"people":
[{
"id": 1,
"first_name": "",
"last_name": "",
"email": "",
"gender": "Female",
"ip_address": ""
}, {
"id": 2,
"first_name": "",
"last_name": "",
"email": "",
"gender": "Male",
"ip_address": ""
}, {
"id": 3,
"first_name": "",
"last_name": "",
"email": "",
"gender": "Female",
"ip_address": ""
}, {
"id": 4,
"first_name": "",
"last_name": "",
"email": "",
"gender": "Male",
"ip_address": ""
}]}
How would you get the value of the field “first_name”
TSharedPtr<FJsonObject> FirstName= JsonObject->GetObjectField("people.first_name");