JSONView options
12 | 13 |
(*) safe method forces the browser to send an extra HTTP request to get the raw HTTP content.
30 |├── WebContent
├── error.gif
├── options.png
├── close_icon.gif
├── jsonview128.png
├── jsonview16.png
├── jsonview48.png
├── viewer
│ ├── jsoneditor
│ │ ├── img
│ │ │ └── jsoneditor-icons.png
│ │ └── jsoneditor.min.css
│ ├── viewer.js
│ └── index.html
├── content_error.css
├── codemirror
│ ├── default.css
│ ├── LICENSE
│ ├── codemirror.css
│ └── css.js
├── jsonview.css
├── csseditor.html
├── manifest.json
├── options.html
├── options.js
├── options.css
├── jsonview-core.css
├── workerFormatter.js
├── csseditor.js
├── background.js
├── csseditor.css
├── content.js
└── workerJSONLint.js
├── README.md
├── .project
└── LICENSE.txt
/WebContent/error.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aneasystone/JSONView-for-Chrome/master/WebContent/error.gif
--------------------------------------------------------------------------------
/WebContent/options.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aneasystone/JSONView-for-Chrome/master/WebContent/options.png
--------------------------------------------------------------------------------
/WebContent/close_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aneasystone/JSONView-for-Chrome/master/WebContent/close_icon.gif
--------------------------------------------------------------------------------
/WebContent/jsonview128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aneasystone/JSONView-for-Chrome/master/WebContent/jsonview128.png
--------------------------------------------------------------------------------
/WebContent/jsonview16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aneasystone/JSONView-for-Chrome/master/WebContent/jsonview16.png
--------------------------------------------------------------------------------
/WebContent/jsonview48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aneasystone/JSONView-for-Chrome/master/WebContent/jsonview48.png
--------------------------------------------------------------------------------
/WebContent/viewer/jsoneditor/img/jsoneditor-icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aneasystone/JSONView-for-Chrome/master/WebContent/viewer/jsoneditor/img/jsoneditor-icons.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # JSONView-for-Chrome
2 |
3 | JSONView-for-Chrome is an extension of chrome created by [gildas-lormeau](https://github.com/gildas-lormeau/JSONView-for-Chrome)
4 | which is very useful for people who deals a lot with json type http requests.
5 |
6 | But sometimes we would like to handle with our own json data, not from the internet. So I added a json editor to this extension
7 | to make it more handful. The json editor is copied from [josdejong's jsoneditor](https://github.com/josdejong/jsoneditor).
8 |
--------------------------------------------------------------------------------
/WebContent/viewer/viewer.js:
--------------------------------------------------------------------------------
1 | var container = document.getElementById('jsoneditor');
2 |
3 | var options = {
4 | mode: 'text',
5 | modes: ['code', 'text', 'view'], // allowed modes
6 | error: function (err) {
7 | alert(err.toString());
8 | }
9 | };
10 |
11 | var json = {
12 | "array": [1, 2, 3],
13 | "boolean": true,
14 | "null": null,
15 | "number": 123,
16 | "object": {"a": "b", "c": "d"},
17 | "string": "Hello World"
18 | };
19 |
20 | var editor = new JSONEditor(container, options, json);
--------------------------------------------------------------------------------
/WebContent/content_error.css:
--------------------------------------------------------------------------------
1 | .error-position {
2 | display: inline-block;
3 | color: fireBrick;
4 | padding-left: 3px;
5 | padding-right: 3px;
6 | }
7 |
8 | .error-position img {
9 | padding-right: 3px;
10 | height: .8em;
11 | }
12 |
13 | .container {
14 | position: absolute;
15 | left: 0px;
16 | width: 100%;
17 | }
18 |
19 | .content {
20 | top: 3px;
21 | width: 30em;
22 | margin: 0 auto;
23 | background-color: #FEE;
24 | border: 2px solid #933;
25 | color: #933;
26 | padding: 20px;
27 | position: relative;
28 | -webkit-box-shadow: #888 3px 3px 5px;
29 | }
30 |
31 | .close-error {
32 | background-image: url("close_icon.gif");
33 | width: 16px;
34 | height: 16px;
35 | position: absolute;
36 | top: 3px;
37 | right: 3px;
38 | cursor: pointer;
39 | }
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
32 | You can paste the json data into `Text View` and change the view mode to see the effects. Enjoy it! 33 | Powered by josdejong's jsoneditor. 34 |
35 | 36 |
JSONView options(*) safe method forces the browser to send an extra HTTP request to get the raw HTTP content.
30 |