expanso-csv-to-json

Convert CSV files to JSON with schema inference and type coercion.

1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/expanso-io/expanso-skills --skill expanso-csv-to-json
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expanso-csv-to-json
Source: https://github.com/expanso-io/expanso-skills/tree/main/skills/recipes/csv-to-json
Command: npx skills add https://github.com/expanso-io/expanso-skills --skill expanso-csv-to-json

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the conversion of CSV files into JSON format, simplifying data processing and integration.

Core Features & Use Cases

  • Schema Inference: Automatically detects and infers the schema from CSV data.
  • Type Coercion: Converts string representations of numbers, booleans, and nulls into their appropriate JSON types.
  • Header Mapping: Uses the first row of the CSV as headers for the JSON output.
  • Use Case: Transform a CSV export of customer data into a JSON array for easy ingestion into a NoSQL database or for use in a web application.

Quick Start

Convert all CSV files in the /path/to/csv/files directory to JSON and save them in the /path/to/json/output directory.

Frequently Asked Questions about expanso-csv-to-json

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert CSV files to JSON with automatic type coercion?

This Skill converts CSV files to JSON format, automatically inferring the schema from header rows and coercing string representations of numbers, booleans, and nulls into their appropriate JSON types for structured data output.

Can I map CSV headers to JSON output structures automatically?

Yes, you can map CSV headers to JSON output structures automatically. The Skill uses the first row of the CSV as headers for the JSON output, mapping input fields to output JSON structures without manual configuration.

What is the best way to transform CSV exports into a JSON array for a NoSQL database?

The best way to transform CSV exports into a JSON array for NoSQL database ingestion is using a data transformation pipeline that infers headers and coerces data types automatically, which this Skill is designed to handle.

Does this CSV to JSON conversion support schema inference for data transformation pipelines?

Yes, this CSV to JSON conversion supports schema inference for data transformation pipelines. It automatically detects the schema from CSV data and maps input fields to output JSON structures requiring structured data output.

Are there limitations when using schema inference for CSV parsing?

A limitation of using schema inference for CSV parsing is that it relies on the first row for header inference, meaning improperly structured headers or malformed delimited text files may affect the accuracy of the JSON output mapping.