How do I store Excel data into Firebase?
STEPS TO UPLOAD COUNTRY LIST IN FIREBASE:
- download country list with country code, currency code and currency name what you require:
- convert it into csv.
- convert csv into json from (https://codebeautify.org/csv-to-xml-json#).
- validate json from https://jsonlint.com/
- save in a file say test.json.
- open firebase with login.
- select database.
click on (...) in verticle, beside + - sign,
click on import.
- browse and select test.json file
- import
- now it is great!!!!!!! cheers!
I figured this out on my own.
First, take the Excel spreadsheet and clean it up in such a way that the first row contains the headers and everything else is the actual data. Remember that Firebase keys (which correspond to column headers) must be UTF-8 encoded which means that it cannot contain . $ # [ ] / or ASCII control characters 0-31 or 127.
Then, save it as a CSV file. For example, on Excel 2013 it would be: File > Export > Change File Type > CSV.
Then, visit various resources online that can do CSV to JSON conversion. The one I used was: http://codebeautify.org/csv-to-xml-json
Finally, take that .json file and load it into the Firebase database. Voila!