I have a JSON file called items.json, this is what is contained inside that file:
[
{
"id": 8484,
"name": "David",
"height": "6",
"weight": 165,
}
]
I am trying to use gson to print out the name and id.
I want it to Print out:
David 8484
I've searched for many examples but none work for this particular situation, or maybe they do but I am a beginner and need it simplified. Thanks for any help you can provide.
So my question is how can I achieve this? I will edit this question with my current code that isn't working in a minute, sorry.