我在一个文件中几乎有10 MB的json数据。我想将此文件上传到Firestore数据库,以便可以从那里检索。我搜索了一下,但我不知道如何。确实需要一些帮助。这是我需要上传的json的结构。
[
{
"book":"book1",
"data":
[
{
"chapter":"ch1",
"topics":
[
{
"key1":"value1",
"key2":"value2",
"key3":"value3"
},
{
"key1":"value1",
"key2":"value2",
"key3":"value3"
}
]
},
{
"chapter":"ch2",
"topics":
[
{
"key1":"value1",
"key2":"value2",
"key3":"value3"
},
{
"key1":"value1",
"key2":"value2",
"key3":"value3"
}
]
},
]
},
{
"book":"book2",
"data":
[
{
"chapter":"ch1",
"topics":
[
{
"key1":"value1",
"key2":"value2",
"key3":"value3"
},
{
"key1":"value1",
"key2":"value2",
"key3":"value3"
}
]
}
]
}
]