I am trying to get data from firebase realtime database in android. I have created a json data file and imported the json file in firebase database. The data file looks like this :
{
"data": [
{
"name" : "one",
"age" : "ten"
},{
"name" : "two",
"age" : "twenty"
}
]
}
I have created a POJO class. Now how can I get all the json objects from the array? I've searched for a while but can't understand what will be the reference & child here.
