So I'm making an app and I need to extract data from JSON files dynamically.
Here is a snippet of the JSON file:
{
"004bb5ee-34ba-484a-924b-31412d898e7e": {
"title": "obj_survivalobject_elevatordoor_left"
},
"00284190-1484-4286-a198-b2ddef768c2e": {
"description": "Adds shock absorption and provides stability. Great for vehicles to prevent them from easily flipping over. This suspension has a lot of bounce, making it ideal for off-road vehicles.",
"title": "Off-Road Suspension 2"
},
"011c1ffd-7146-4e8d-8c18-17247d768ae2": {
"title": "obj_spaceship_wall04"
}
}
There is lots more in the file. But I only need to get the title and the parent of that title. Eg:
Tag: "00284190-1484-4286-a198-b2ddef768c2e"
Name: "Off-Road Suspension 2"
I don't want the description and not all have one.
I will also be using JSON files that are selected by the user while the application is running.