Code Issues Releases

Releases

v1.0.0 - Initial Release

v1.0.0 · August 26, 2026

main

csv-to-json v1.0.0

A lightweight, zero-dependency CSV-to-JSON converter built for AI agents and developer workflows.

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 mode: Process large CSV files row-by-row without loading into memory
  • Flexible input: Accepts file paths, raw CSV strings, or stdin
  • CLI and library usage: Use standalone from the command line or import as a Python module

CLI Options

  • Custom delimiters (-d)
  • Compact JSON output (--compact)
  • Disable type inference (--no-type-inference)
  • Nested key expansion (--expand-keys)

Requirements

  • Python 3.10+
  • No external packages required

MIT License