Solved

Viewing JSON using JSONView

Posted on 2011-03-21
5
1,143 Views
Last Modified: 2012-05-11
Ok this comes under the "stupid" or "obvious" question heading: I have both Firebug and JSONView installed in Firefox.  I can see the JSON in Firebug but it isn't formatted nicely which is why I installed JSONView.

Trouble is, I haven't a clue how to get JSONView to work its magic i.e. bring up a browser page with some nicely formatted JSON data of my choosing.

Again, I'm sure this is blazingly obvious but I just can't figure it out.
0
Comment
Question by:max7
  • 3
  • 2
5 Comments
 
LVL 17

Expert Comment

by:Shinesh Premrajan
ID: 35187776
http://benhollis.net/software/jsonview/example.json

The advantage of using JSONview is that you can see the JSON as a XML format in browser.Refer this link in FF and you can see the JSON can be seen in plain browser and with in that you can expand and collapse the attributes also.

Hope this helps
0
 
LVL 1

Author Comment

by:max7
ID: 35190616
I understand what JSONView does, I want to know how to get it to do it ... in other words, Firebug will show me the JSON response automatically in its console.  Am I to understand that with JSONView, once installed I need to point it to a JSON document for it to work?
0
 
LVL 17

Expert Comment

by:Shinesh Premrajan
ID: 35195998
i think you are expecting much from the JSONView, this link will better clarify all your doubts.

http://jsonview.com/

0
 
LVL 1

Author Comment

by:max7
ID: 35232350
>>>this link will better clarify all your doubts.

check out this from the link you provided:

"Normally when encountering a JSON document (content type "application/json"), Firefox simply prompts you to download the file."

so perhaps it is as I thought: I have to point the browser (like I would a CSS file) to a json document.

If that doesn't make sense, let me know how you personally use (i.e. the steps you take) to view well-formatted JSON.
0
 
LVL 17

Accepted Solution

by:
Shinesh Premrajan earned 400 total points
ID: 35238379
Yes max7 you thought it right.The advantage of using JSONview is that you can see the JSON as a XML format [expand/collapse of sub sections] in browser.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now