İlk Satırı Başlık Olarak Kullanma
- Kontrol edin
- Seçin
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.
Adımlar
- For "Direction", choose "CSV → JSON".
- Paste the CSV into "Before conversion".
- Decide the tick for "Use the first row as headings (CSV → JSON)".
- Press "Convert" and check "After conversion".
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
- A table with item names in the first row → tick
- Data with no item names, just a sequence of numbers → no tick
- If unsure → tick it and check the result
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.
Şunlar için iyidir
- Wanting to retrieve data in a program by specifying item names (tick)
- Making a sequence of numbers for a chart (no tick)
Örnek
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
- A title row sits above the headings: delete the title row first.
- Japanese headings: they become item names as they are. Check that the program side can handle them.
Frequently asked questions
Can I change the tick afterwards?
Yes. Change the tick and press "Convert" again.
Özet
If the first row is item names, tick. Look at the result and switch if it looks wrong.
“CSV ve JSON Dönüştürme” aracını kullan (ücretsiz)Bununla iyi giden araçlar
- Yinelenen Satırları Kaldırın ve Listeyi Sıralayın: Yinelenen satırları kaldırın ve sıralayın.
- ZIP Dosyası Oluşturun: Birkaç dosyayı tek bir ZIP'te toplayın.
- Karakter Sayacı (başvurular ve raporlar için): Metninizin karakterlerini, satırlarını ve el yazması sayfalarını sayın.
Bu rehber işinize yaradıysa, küçük bir bahşiş bizim için çok değerli olur.
Bahşiş gönder (¥300)Hediye gönder (Amazon istek listesi)