Chrome/JSONView: How to invoke

Stephen Kairys
Stephen Kairys used Ask the Experts™
on
Hi,
I just added JSONView to my Chrome extensions. it now shows on my list of extensions as follows...

JSONViewExtension.JPG
...however, how do I activate it to view a .JSON file? Can it be used for local files (which I need) as well as a web page?

Thanks,
Steve
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Russell FoxDatabase Developer
Top Expert 2014

Commented:
I'm not familiar with that tool, but my guess is that if you right-click a json document and then "Open With --> Chrome", the tool will take over and validate it. If you choose to always open json with Chrome, you won't need to right-click in the future. Try that and post back if it works (and let me know if it's a worthwhile tool!).
Stephen KairysTechnical Writer - Consultant

Author

Commented:
Hi,
CHROME is not an available choice, and so far I can't find it when I search.
Thanks.
Russell FoxDatabase Developer
Top Expert 2014
Commented:
Ah, here we go:
You don't enter JSON. You visit a page which displays JSON, and this plugin will make reading it easier.
So you'd have to make your local files available as html pages or serve them up through a web service. I.e., it is probably not going to work for your purposes.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Stephen KairysTechnical Writer - Consultant

Author

Commented:
OK, thanks.

Anyone else? :)
Stephen KairysTechnical Writer - Consultant

Author

Commented:
Further question:
Maybe the whole thing is transparent?

I ran a query someone gave me that produces JSON output. It displayed, apparently in Chrome in the format I needed (e.g. one field per line). So maybe there's nothing more to do, now that JSON viewer is installed on Chrome?

{
Name: Joe
Address: 1 EE Way
Zip: 99999
},
{
Name: Steve,
Address: 1234 Elm Street,
Zip: 12345
}

Open in new window


Thanks,
Steve
Multitechnician
Top Expert 2014
Commented:
yes this extension format any json object you display on your chrome page and it allow you to copy a path to a part of this json object or a "value" (a json object) when you hightlight a part of the json on the screen, that's all.

the code of the extension is currently available here :
https://github.com/gildas-lormeau/JSONView-for-Chrome/tree/master/WebContent
Stephen KairysTechnical Writer - Consultant

Author

Commented:
Thanks, everyone. So, I'm going to use the JSON viewer for web content, and figure out how to handle local files. Fortunately, for this project, it seems the data will be on web pages. :)

Thanks, and have  a good week, everyone!

Steve

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial