So im working on this program. I have this JSON:
{"applications": [
{
"id":13594,
"answers": [
{
"id":352,
"question":"Where are you planning to build in The Midwest? [Illinois, Nebraska, Etc]",
"answer":"Kansas"
},
{
"id":599,
"question":"How old are you?",
"answer":"18"
},
{
"id":683,
"question":"Link an image of the IRL building here if it is not included with your build. Please submit completed builds, all applications with uncompleted builds will be
rejected. You can always reapply once it is completed.",
"answer":"The irl builds are in the gallery"
},
{
"id":691,
"question":"Do you understand that if you submit build/s that are not yours, this application will be rejected and all future applications to this team will also be
rejected?",
"answer":"Yes, I understand"
},
{
"id":696,
"question":"What is your minecraft username?",
"answer":"Mudkip557"
}
],
"mediaUrl":"https://imgur.com/gallery/TA2jZNm"}]}
So doing "jsonarray = someJsonElement.getAsJsonObject().getAsJsonArray(" applications");" will return the "applications" array but what I want is the "answers" array for the first element in the "applications" array (which only includes all the questions and answers). How would i do this with Gson?