Home keyboard_arrow_right Questions keyboard_arrow_right #Networking
How to store complex JSON data in Firebase Realtime Database?
Vasil Tabakov
April 18, 2018 (edited)
asked 1 year, 10 months ago
viewed 697 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
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.


sign in Sign in to add your reply or comment.

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