Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View JSON file in Browser

It is not a programming question, but need your views in few words.

When we hit the JSON url in Broswer, it asks us to save the file. Why this happens ? Is there any way to view it on the page itself ? Is there any addon available to view JSON file in browser?

like image 815
Umesh Patil Avatar asked Mar 27 '12 11:03

Umesh Patil


People also ask

How do I view a JSON file?

Users can follow the below steps to open JSON files in Chrome or Firefox browsers. Right-click on the JSON file. Choose open with option from the menu. From the drop-down menu either choose Chrome or Firefox.

How do I open a JSON file in Firefox?

Firefox has a built-in JSON viewer that activates when a server sends a file as "application/json" document and when you open a . json file or drag the . json file in a Firefox window (tab). You can set this pref to true to enable this viewer.

Why do I need an online JSON file viewer?

For the best result please upload the valid JSON file. Why do I need an Online JSON File Viewer? Sometime JSON is large and need to review the details of the data and this tool provides a search and navigation functionality to json data. This tool supports in all browser such as Chrome, Firefox, Edge, Safari etc.

How do I view JSON files in chrome?

In Chrome, use JSONView to view formatted JSON. To view "local" *.json files: - after install You must open the Extensions option from Window menu. Re-open the *.json file and it should be formatted. Firefox 44 includes a built-in JSON viewer (no add-ons required).

How to download and view JSON on Android devices?

The tool also allows you to upload the JSON file stored on your device or paste the code or enter a URL to fetch JSON. Lastly, click on the “View JSON” button. The results will be displayed on your screen instantly. You can Download a JSON file by clicking on the “Download” button. Or copy paste the code into your actual file.

What is the use of @jsonview?

JSONView basically adds content type checking for application/json results and when it finds a JSON result takes over the rendering and formats the display in the browser. Note that it re-formats the raw JSON as well for a nicer display view along with collapsible regions for objects.


2 Answers

In Chrome use JSONView or Firefox use JSONView

like image 71
Vodun Avatar answered Oct 21 '22 09:10

Vodun


If you don't want to install extensions, you can simply prepend the URL with view-source:, e.g. view-source:http://content.dimestore.com/prod/survey_data/4535/4535.json. This usually works in Firefox and Chrome (will still offer to download the file however if Content-Disposition: attachment header is present).

like image 32
Wladimir Palant Avatar answered Oct 21 '22 08:10

Wladimir Palant