Home keyboard_arrow_right Questions keyboard_arrow_right #Networking
How to store complex JSON data in Firebase Realtime Database?
question
2
Vasil Tabakov
April 18, 2018 (edited)
asked 1 year, 5 months ago
viewed 571 times

I'm using Firebase Realtime Database in my project to save some user data.

However apart from the basic data there is some extra data which is complex and might exceed the allowed 32 levels of complexity in Firebase.

How can I store this complex data with Firebase? Can I somehow store it as a file or maybe just serialize it to a string and store it to a single key? Is there a limit to how much data can a Firebase key hold?

1 Answer
answer
Android Pal @pal April 19, 2018 (edited)

We had a similar case and ended up saving the JSON as a file in Firebase Storage. Once uploaded we store the download URL from Storage in the Firebase RTDB.

2

sign in Sign in to add your reply or comment.

delete_forever
Careful now...
Doing this you will loose this information and the action cannot be undone.
This action cannot be undone.
cancel