GetObjectField for nested JSON file

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");

Don’t know if you got it sorted out, but I found a pretty nasty function that works for nested objects and, also, for arrays altogether. And it gives you a USTRUCT, so you don’t have to use the functions that get values by Keys (I don’t like them since they’re very error prone). Instead, you’ll have type safety!