Solved

Viewing JSON using JSONView

Posted on 2011-03-21
5
1,141 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

863 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

27 Experts available now in Live!

Get 1:1 Help Now