我已经从firebase实时数据库中获取数据。现在我想以json格式获取firebase数据。
这是我从firebase手动下载的json,但我想通过我的应用程序获取它。我想显示一个用户的两个按钮,可以像在xml中一样在textview中查看数据,并单击另一个按钮用户即可可以获取所有数据的json。
{
"Answers" : {
"0582019101653" : {
"06-August-201917:17:15" : {
"Cheers 1" : [ "Jdj", "72728" ],
"Cheers 2" : [ "Jdjjd", "83883", "Udxj", "Jxj" ],
"Q1" : [ "Yes" ],
"Q2" : [ "No\n" ],
"Radi1" : [ "Ywu" ],
"Radio2" : [ "6272" ]
},
"06-August-201917:22:40" : {
"Cheers 1" : [ "Jdj" ],
"Cheers 2" : [ "83883" ],
"Q1" : [ "New" ],
"Q2" : [ "" ],
"Radi1" : [ "Jdje" ],
"Radio2" : [ "6272" ]
}
}
},
}