- ตัวดำเนินการ
-
เรียนรู้
ศูนย์การเรียนรู้ Python ตัวอย่างที่รันได้, NumPy, pandas และอื่น ๆ ศูนย์การเรียนรู้ C และ C++ พอยน์เตอร์ หน่วยความจำ STL และ C++ สมัยใหม่ ศูนย์การเรียนรู้ C#พื้นฐาน C#, OOP, LINQ, async และแบบฝึกหัด .NET อัลกอริทึม Python การค้นหา การเรียงลำดับ รีเคอร์ชัน และภาพจำลอง O(n) อัลกอริทึม C และ C++ เปรียบเทียบการเขียนด้วย C และ C++
- โจทย์
Converters
CSV to JSON Converter
Turn CSV or TSV data into a JSON array of objects, an array of arrays, or an object keyed by the first column.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the CSV to JSON Converter
- Paste CSV (the first row should hold column names).
- Pick the delimiter and output shape, and choose whether to detect types.
- Copy the JSON or download it as a file.
Frequently asked questions
How are numbers and booleans handled?
With type detection on, values like 42, 3.14, true and false become JSON numbers and booleans; everything else stays a string.
What does nesting dotted headers do?
A header like address.city becomes a nested object: {"address": {"city": ...}}.
Does it handle quoted fields with commas?
Yes. Quoted fields, escaped quotes and line breaks inside quotes follow the CSV standard.
ฝึก Python ด้วยโจทย์เขียนโค้ด
แก้โจทย์จริงใน editor นี้: รันทดสอบตัวอย่าง ส่งคำตอบ และรับรีวิวโค้ดจาก AI