Code Issues Releases

Releases

v1.0.0 — Initial Release

v1.0.0 · August 29, 2026

main

csv-to-json v1.0.0

A lightweight, zero-dependency CSV-to-JSON converter built on Python's standard library.

Features

  • Type inference: Automatically casts CSV values to int, float, bool, or null
  • Nested key expansion: Dot-notation headers (e.g. user.name) become nested JSON objects
  • Streaming: Generator-based processing for large files without full memory load
  • Flexible input: Accepts file paths, raw CSV strings, or stdin
  • CLI + library: Use from the command line (python csv_converter.py data.csv -o out.json) or import as a Python module
  • Custom delimiters: Tab, semicolon, pipe — any single character

CLI Options

-o output path · -d delimiter · --expand-keys nested objects · --no-type-inference keep strings · --compact minified JSON

Requires Python 3.10+. No external packages.