Solved

Viewing JSON using JSONView

Posted on 2011-03-21
5
1,154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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.

705 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