├── favicon.ico ├── google3de67356095dee46.html ├── .gitattributes ├── docs ├── data │ ├── download.html │ ├── demo.html │ ├── home.html │ ├── about.html │ └── examples.html ├── index.html ├── css │ └── styles.css ├── pages │ └── index.html └── js │ └── jsoneditor.js ├── index.html ├── README.md ├── LICENSE ├── testcases.html ├── demo.html └── jsoneditor.js /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usmanulhaq/json-editor/HEAD/favicon.ico -------------------------------------------------------------------------------- /google3de67356095dee46.html: -------------------------------------------------------------------------------- 1 | google-site-verification: google3de67356095dee46.html -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /docs/data/download.html: -------------------------------------------------------------------------------- 1 |
You can convert a json array to table and then that table back to json array
4 |The created table is editable, you can edit the table cells as well as perform several other functions that are available on right click
5 | 6 |4 | json array should be in a below format
5 |
6 | [{'key1':'value1_A', 'key2':'value2_A'},{'key1':'value1_B', 'key2':'value2_B' },{'key1':'value1_C', 'key2':'value2_C' }]
7 |
8 | 9 | This is an array of javascript object and each object is a list of key & value pairs
10 |19 | After including the javascript file in you code just call the below function
20 |
21 |
22 | jsonEditorInit(table_container_id, json_input_container_id, json_output_container_id, json_to_table_btn_id, table_to_json_btn_id);
23 |
24 |
Dated: 14-Feb-20
5 |Notes:
6 |Dated: 25-Nov-19
13 |Notes:
14 |Dated: 15-Sep-19
21 |Notes:
22 |V 4.0
29 |Dated: 15-Oct-18
30 |Notes:
31 |V 3.0
43 |Dated: 26-May-18
44 |Notes: The table is now editable; i.e the user can edit the data in the table and then can convert it back to json array"
45 |Updated the documentation
46 | 47 |V 2.0
48 |Dated: 23-May-18
49 |Notes: Added conversion function "from table to json array"
50 | 51 |V 1.0
52 |Dated: 18-May-18
53 |Notes: First Version
54 |These pages are based on a template based on bootstrap by Usman ul Haq
56 |Usman ul Haq
58 |Contact: uuhaqpk@yahoo.com
59 |
5 |
6 | [
7 | {"id":1, "name":"name1"},
8 | {"id":2, "name":"name2", "salary":2000},
9 | {"id":3, "name":"name3"},
10 | {"id":4, "name":"name4", "bonus":3000},
11 | {"id":5, "name":"name5", "salary":{"basic":2000, "extra":"500"}},
12 | {"id":6, "name":"name6", "bonus":[{"quarter":1, "first":1000, "second":"500"},{"quarter":2, "first":1000, "second":"500"}]}
13 | ]
14 |
15 |
16 |
17 | | id | name | salary | bonus | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | name1 | |||||||||||
| 2 | name2 | 2000 | ||||||||||
| 3 | name3 | |||||||||||
| 4 | name4 | 3000 | ||||||||||
| 5 | name5 |
| ||||||||||
| 6 | name6 |
|
24 |
25 | [
26 | {"id":1, "name":"name1"},
27 | {"id":2, "name":"name2"},
28 | {"id":3, "name":"name3"}
29 | ]
30 |
31 |
32 |
33 | | id | name |
|---|---|
| 1 | name1 |
| 2 | name2 |
| 3 | name3 |