Firebase url to json version of the database data

Viewed 4360

I have created a firebase database and added some data to the database.

It has given me a url like this:

https://my-app-name.firebaseio.com/

My question is...does firebase provide a url to a json version of my database data if so what is it?

2 Answers

You can get the json of any node by simply going to this url:

https://[my-app-name].firebaseio.com/[path].json

Just replace [my-app-name] with the name of your realtime firebase app name, and path with the json node you want to see.

Source: Firebase Database REST API

If you open in a browser you will just see the json minimized. If you add a json viewer Chrome extension such as DJSON. JSON Viewer & Formatter, it will be pretty.

DJSON. JSON Viewer & Formatter

Additionally, you can then copy/paste that into Json Grid to see even a better representation that organizes tables:

Json Grid

Related