Code Issues Releases

Releases

csv-to-json v1.0.0

v1.0.0 · August 29, 2026

main

First stable release of csv-to-json, a lightweight, dependency-free CSV-to-JSON converter (Python 3.10+, stdlib only).

What it does

Converts CSV data to JSON from files, raw strings, or stdin — usable as a CLI or as an importable Python library.

Highlights

  • Type inference: numeric, boolean (true/yes, false/no), and empty-to-null casting, with a --no-type-inference opt-out
  • Nested key expansion: dot-notation headers like user.address.city become nested JSON objects via --expand-keys
  • Streaming: stream_csv_to_json() yields records one at a time so large files never load fully into memory
  • Flexible I/O: file path, raw CSV string, or stdin in; pretty or --compact JSON out, to stdout or a file
  • Custom delimiters: e.g. -d '\t' for TSV

See the README for CLI flags, library examples, and type-inference rules.