我尝试将我的所有类别的名称插入我的firebase仪表板,移动应用程序中的所有用户都会看到它,但是当我将该JSON导入firebase时,firebase告诉我导入已成功,但我可以'看到任何类别只是我的根应用程序等于null。 我的JSON:
{
"categories": {
"Books": {
"Accessories": {
"AddressBooks": {},
"BookCovers": {},
"BookLights": {},
"BookMarks": {},
"OtherBookAccessories": {}
},
"AntiquarianCollectible": {},
"AudioBooks": {},
"Catalogues": {},
"ChildreanYoungAdult": {},
"CookBooks": {},
"Fiction": {},
"Magazine": {},
"Nonfiction": {},
"TextBooksEducation": {},
"OtherBooks": {}
}
}
}
答案 0 :(得分:1)
对象中没有数据,因此Firebase没有保存它...尝试在操作对象中添加一些东西,看看是否有所作为