maxwellyu1024 / chrome-rest-client

Automatically exported from code.google.com/p/chrome-rest-client
0 stars 0 forks source link

jsonviewer usage in another project #273

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(sorry for posting it as the issue, but haven't found any other way to contact 
you)

Many thanks for your chrome extension!

May I use your jsonviewer lib 
(https://code.google.com/p/chrome-rest-client/source/browse/trunk/RestClient/war
/workers/jsonviewer.js) in my own project (non-commercial, actually, will be 
used by myself only)? If I can, could you please help me to understand how 
should I use it, if I have json in some variable?

Thanks in advance,
Andrey

Original issue reported on code.google.com by and7ey@gmail.com on 9 Sep 2014 at 6:28

GoogleCodeExporter commented 9 years ago
Sorry for late response. This project is under Apache 2 licence so - yes, you 
can either in commercial or non-commercial projects. Feel free to use it. Fee 
https://code.google.com/p/chrome-rest-client/source/browse/trunk/RestClient/LICE
NSE-2.0.html for more informations.

Original comment by jarro...@gmail.com on 22 Sep 2014 at 2:41

GoogleCodeExporter commented 9 years ago
Thanks! Could you please help to understand HOW it can be used? How to 
initialize it? Should I have some special HTML code or is it handled pure thru 
JavaScript?

Original comment by and7ey@gmail.com on 22 Sep 2014 at 3:11

GoogleCodeExporter commented 9 years ago
The js file is a WebWorker 
(https://developer.mozilla.org/en/docs/Web/Guide/Performance/Using_web_workers).
  It is called from 
https://code.google.com/p/chrome-rest-client/source/browse/trunk/RestClient/src/
org/rest/client/ui/desktop/widget/JSONViewer.java java class (using GWT 
framework).
You must pass "data" with JSON object or string to the worker and in response 
you will receive HTML with parsed data.

Original comment by jarro...@gmail.com on 22 Sep 2014 at 3:22