Solved

Viewing JSON using JSONView

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
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.

758 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

18 Experts available now in Live!

Get 1:1 Help Now