Get Download Firebase Database as Json file

1,183 views
Skip to first unread message

Dominic Wagas

unread,
Sep 17, 2018, 11:18:02 AM9/17/18
to Firebase Google Group
I want to get the json file from firebase database from the app.. I'm using Unity3D.. 
right now I'm using "args.Snapshot.Child", and my database has lot of file and it takes time in code retriving the value.. 
it there any way to get all value as json file in firebase database??
I attached my database in how it was look like.. I want to get all data starting from "android"
 
 
Untitled27.png

Anthony Maurice

unread,
Sep 18, 2018, 4:32:18 PM9/18/18
to fireba...@googlegroups.com
Hi Dominic,

What you'll want to use is GetRawJsonValue(), off of a DataSnapshot.  https://firebase.google.com/docs/reference/unity/class/firebase/database/data-snapshot#getrawjsonvalue  You can then either parse that string yourself, or use another Json parser like Unity's JsonUtility class to handle it.  Hope that helps!

-Anthony

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/89c1c38a-58f3-4a67-9179-710b5981809e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages