I've a large JSON file, containing a lot of data. I want to upload it to firebase, but obviously can't enter everything one by one. Can someone please tell me exactly how can I do this? Thanks!
I've a large JSON file, containing a lot of data. I want to upload it to firebase, but obviously can't enter everything one by one. Can someone please tell me exactly how can I do this? Thanks!
There's a super easy to use IMPORT button in the firebase console. Open your browser, go to your Firebase console->Three Dots on the right->Import JSON.
Important to note that when importing, whichever node you have selected in your Firebase database will be overwritten, so make sure you don't have your root node selected - create a child node and then do your import.
It does need to be a properly formatted JSON file - there are a number of online sites that will check the validity of the file. One file we were trying to import had a missing key - after not finding it while scanning we copy and pasted it into one of the sites and quickly found the issue - so the short story there is your nodes needs to have unique keys to be imported.