CSV ↔ JSON
CSV-, TSV- oder semikolongetrennte Daten in JSON umwandeln und zurück, mit Feldern in Anführungszeichen, Kopfzeilensteuerung und Download.
Läuft vollständig in Ihrem Browser – nichts, was Sie einfügen, wird hochgeladen.
[
{
"id": "1",
"customer": "Ryu, Min",
"email": "ryu@example.com",
"total": "49.90",
"currency": "USD"
},
{
"id": "2",
"customer": "Ada \"the countess\" Lovelace",
"email": "ada@example.com",
"total": "120.00",
"currency": "GBP"
},
{
"id": "3",
"customer": "Grace Hopper",
"email": "grace@example.com",
"total": "15.50",
"currency": "USD"
}
]Die Maskierung nach RFC 4180 bleibt erhalten: Trennzeichen in Anführungszeichen, verdoppelte Anführungszeichen und Zeilenumbrüche im Feld.
CSV- und JSON-Referenz
Kurzreferenz- "Feld, mit Kommas"
- Ein Feld mit Trennzeichen, Anführungszeichen oder Zeilenumbruch muss in doppelte Anführungszeichen gesetzt werden.
- "" in einem Feld
- Das Verdoppeln des Anführungszeichens ist die einzige Maskierung in RFC 4180: Ada ""the countess"" Lovelace wird wieder zu Ada "the countess" Lovelace.
- Trennzeichen
- Standard ist das Komma, doch in Regionen mit Komma als Dezimaltrennzeichen dominieren Tabulator (TSV) und Semikolon.
- Kopfzeile
- Mit Kopfzeile wird jede Zeile ein Objekt mit den Spaltennamen als Schlüssel; ohne bleibt jede Zeile ein Array.
- CRLF vs. LF
- RFC 4180 nutzt CRLF, doch fast alle Parser akzeptieren LF. Excel exportiert CRLF mit abschließendem Zeilenumbruch.
- Excel-CSV
- Excel entfernt führende Nullen und schreibt lange Zahlen um, wenn die Spalte nicht vorab als Text formatiert ist; nutzen Sie Daten → Aus Text für Kontrolle.
Passende Python-Syntax-Guides
Alle Python-GuidesPython iter(): How the Built-in Function Works
Explains Python's iter() built-in: how it creates iterators, the two-argument sentinel form, custom iterator classes, and common edge cases.
PythonPython Pika: Queues, Exchanges, Routing Keys, and Acknowledgements
Learn how to use Python's Pika client with RabbitMQ: declare queues and exchanges, publish with routing keys, consume messages, and handle acknowledgements reliably.
PythonPython Kafka: kafka-python vs Confluent Client
python kafka python vs confluent kafka: Compare kafka-python and Confluent Kafka Python clients: API differences, performance, feature coverage, and when to choose eac...
PythonPython Kafka Offsets, Partitions, and Manual Commits
Learn how Kafka offsets and partitions work and how to manually commit offsets in Python consumers with kafka-python and confluent-kafka. Covers sync vs async commits, rebalances, and seeking.