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 agent workflows and developer toolchains.

Features

  • Type inference — automatically converts CSV string values to int, float, boolean, or null
  • Nested key expansion — dot-notation headers (e.g. user.name) become nested JSON objects
  • Streaming — process large CSV files record-by-record without loading everything into memory
  • Flexible input — accepts file paths, raw CSV strings, or stdin
  • CLI and library — use standalone from the command line or import as a Python module
  • No external dependencies — pure Python standard library

Usage

python src/csv_converter.py data.csv -o output.json
from src.csv_converter import csv_to_json
result = csv_to_json("name,age\nAlice,30")

See README for full documentation including streaming examples and all CLI options.