You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Excel to JSON by WTSolutions is a **Microsoft Excel add-in** or **Web Application** which can convert Excel to JSON, both Flat and Nested JSON can be converted.
Excel to JSON is a Microsoft Excel add-in which can convert Excel to JSON.
17
25
18
-
## Requirements
19
-
This add-in works with Excel 2013(or higher), Excel Online, Office 365, Excel for Mac.
26
+
## 3.1 (Side-)Load Excel to JSON
20
27
21
-
## Get add-in
22
-
* Open a new datasheet in Excel 2013/2016 or higher, Excel Online or Office 365 etc.
23
-
***Insert** Tab or **Home** Tab> Add-ins.
24
-
* In the Add-ins search box, search for “Excel-to-JSON”.
25
-
* Click the add-in to start it.
26
-
* You would see a "Excel-to-JSON" button added to your Excel **Home** Tab. Now you are ready to use this add-in.
28
+
`Option 1. Load Excel to JSON in Web Browser`
29
+
* Open a web browser that supports JavaScript, such as Google Chrome, Mozilla Firefox, Safari, or Microsoft Edge.
30
+
* Open the following URL in your web browser: <ahref="https://s.wtsolutions.cn/excel-to-json.html"target="_blank">https://s.wtsolutions.cn/excel-to-json.html</a>
27
31
28
-
### Use add-in
29
32
30
-
Note that you should select at least two rows as the first row will be considered as header.
33
+
`Option 2. Side-load Excel to JSON in Excel` (recommended)
34
+
* Open a new datasheet in Excel 2013/2016 or Excel Online or Office 365.
35
+
***Home** Tab or **Insert** Tab > Add-ins
36
+
* In the search box, type in "Excel to JSON"
37
+
* Follow the instructions on the screen to install the add-in, and you will see an button JSON-to-Excel added to your **Home** Tab.
38
+
***Home** Tab > Excel to JSON > Convert
39
+
* Now you are ready to use this add-in.
40
+
41
+
42
+
<aname="Useadd-in"></a>
43
+
44
+
## 3.2 Use Excel to JSON
31
45
32
46
* Prepare your Excel sheet
33
-
* Select data you'd like to convert
34
-
* Choose Mode: Flat or Nested JSON mode
35
-
* If you have subscribed "Pro Features", you can set more options
47
+
* Load your Excel Data in one of the two ways:
48
+
1.`Load Excel to JSON in web browser`: Copy and Paste your Excel data in the text area, or
49
+
2.`Side-load Excel to JSON in Excel`: Select your date directly from Excel worksheet.
50
+
* Set Conversion Settings
36
51
* Click on "Go" button
37
52
* You will later see the converted JSON below the "Go" button
38
-
* Later you can "copy+paste" / "copy to clipboard" JSON and save it to your computer
53
+
54
+
### Input Excel Data
55
+
56
+
There are two ways for you to input Excel data to Excel-to-JSON:
57
+
58
+
*`Load Excel to JSON in web browser`
59
+
* Copy and Paste your Excel data in the text area
60
+
* You can copy and paste your Excel data from Excel, Google Sheets, or any other Excel-compatible software, data are seperated by Tab
61
+
* You can also copy and paste comma seperated CSV data
62
+
*`Side-load Excel to JSON in Excel`: Select your data directly from Excel worksheet using your mouse.
63
+
64
+
### Output JSON export
65
+
66
+
There are several ways for you to save the generated JSON to your local computer.
67
+
68
+
*`Copy and Paste`. Once JSON generated, you will see them in a textarea, and you can simply copy and paste them anywhere you want.
69
+
*`Copy to Clipboard`. Once JSON generated, you can find the "Copy to Clipboard" button, click on the button, and you will have JSON on your clipboard.
70
+
*`Save to File`.(Not available to `Excel for Mac` users) Once JSON generated, you can find the "Save As" button, click on the button, and you will be prompted to save the JSON to a file.
71
+
72
+
73
+
74
+
75
+
## 3.3 Conversion Settings
76
+
77
+
Line break in an Excel cell will be rendered as `\n`
39
78
40
79
41
-
## Examples
80
+
### Select Header, Row/Column
81
+
By default, Excel to JSON took the first row as header, but optionally, you can select "First Column as Header".
42
82
43
-
**Example Excel sheet 1**
83
+
If `First Row as Header` selected:
84
+
85
+
The first (left) column will be considered as the header column(keys for JSON object), and columns on the right will become values for JSON object."
86
+
87
+
If `First Column as Header` selected:
88
+
89
+
The first (top) row will be considered as the header row(keys for JSON object), and row below will become values for JSON object.
90
+
91
+
92
+
### Conversion Mode
93
+
*`Flat JSON mode`
94
+
* Simply convert Excel datasheet to a flat JSON.
95
+
*`Nested JSON mode`
96
+
* First convert Excel datasheet to a flat JSON
97
+
* then, unflatten an object with delimited keys using "Flat" [https://www.npmjs.com/package/flat](https://www.npmjs.com/package/flat)
98
+
* unflatten() is called by Excel-to-JSON, with delimiter as ".", overwrite as true. If you have subscribed "Pro Features", you can set other delimeters.
99
+
100
+
### Nested JSON Key Delimiter
101
+
102
+
The delimiter used to separate nested properties in the JSON output.
103
+
104
+
-`Dot (.)`
105
+
-`Underscore (_)`[Pro Feature]
106
+
-`Double Underscore (__)`[Pro Feature]
107
+
-`Slash (/)`[Pro Feature]
108
+
109
+
### Other Settings
110
+
111
+
Other settings will be described in [Pro Features](profeatures.md)
112
+
113
+
# 4. Examples
114
+
115
+
116
+
## 4.1 Example Excel sheet 1
44
117
45
118
46
119
|Name|Age|Company|
@@ -85,7 +158,7 @@ Note that you should select at least two rows as the first row will be considere
85
158
]
86
159
```
87
160
88
-
**Example Excel sheet 2**
161
+
## 4.2 Example Excel sheet 2
89
162
90
163
|id|student.name|student.familyname|student.age|
91
164
|---|---|---|---|
@@ -114,7 +187,7 @@ Note that you should select at least two rows as the first row will be considere
114
187
}]
115
188
```
116
189
117
-
> Using Nested JSON mode
190
+
> Using Nested JSON mode, and dot . as delimiter
118
191
119
192
```json
120
193
[{
@@ -141,3 +214,4 @@ Note that you should select at least two rows as the first row will be considere
0 commit comments