PDF Mikata

把第一行用作表頭

釋出日期:2026 年 10 月 19 日|最後更新:2026 年 10 月 19 日|關於(日文)

要點
  • 確認
  • 選擇

The big fork in converting CSV to JSON is whether to tick "Use the first row as headings". Here is the difference, following the screen of Convert CSV and JSON.

步驟

  1. For "Direction", choose "CSV → JSON".
  2. Paste the CSV into "Before conversion".
  3. Decide the tick for "Use the first row as headings (CSV → JSON)".
  4. Press "Convert" and check "After conversion".
With the tick, the first row becomes the item names. Without it, you get an array of rows.

With the tick

The first row becomes item names, and the second row onwards become the values of those items.

CSV:

name,age

Yamada,30

Result: data with item names, like "name: Yamada" and "age: 30".

When used in a program, values can be retrieved by item name, an easy-to-handle form.

Without the tick

All rows are treated alike and become a sequence (array) of values per row.

Result: a sequence of values without item names, like "Yamada, 30".

Which to choose

If you tick for a table without headings

The first row of data becomes the item names and the first row's data is lost. If the result looks wrong, untick.

When headings have the same name

If the same item name appears more than once, later values may overwrite earlier ones. Fix headings so they don't repeat.

適合

示例

Converted a table of product name, price and stock to JSON to use as web app data. The first row was headings, so ticked.

Common stumbling blocks

Frequently asked questions

Can I change the tick afterwards?

Yes. Change the tick and press "Convert" again.

小結

If the first row is item names, tick. Look at the result and switch if it looks wrong.

使用「CSV 與 JSON 互相轉換」(免費)

搭配使用的工具

如果這篇教程對你有幫助,一點小小的打賞會讓我們非常開心。

打賞(300 日元)贈送禮物(亞馬遜心願單)

此工具的更多教程

檢視全部教程