Solved

Viewing JSON using JSONView

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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)
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

730 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