data-type-converter

Convert data between JSON, CSV, XML, YAML, and TOML formats.

86|18|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill data-type-converter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-type-converter
Source: https://github.com/dkyazzentwatwa/chatgpt-skills/tree/main/data-type-converter
Command: npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill data-type-converter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, toml, xmltodict, pandas, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines data management by providing a versatile tool to convert data between various common formats, eliminating manual reformatting and potential errors.

Core Features & Use Cases

  • Multi-Format Conversion: Supports JSON, CSV, XML, YAML, and TOML.
  • Nested Data Handling: Intelligently flattens or preserves nested structures.
  • Batch Processing: Convert multiple files efficiently.
  • Use Case: You have a configuration file in YAML and need to convert it to JSON for an API, or you have a CSV export from a system and need to convert it to a nested JSON structure for further processing.

Quick Start

Use the data-type-converter skill to convert the file 'input.json' to 'output.csv'.

Frequently Asked Questions about data-type-converter

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

FAQPage Schema
How do I convert a YAML configuration file to JSON for an API?

To convert a YAML configuration file to JSON, you can use a data type converter that parses YAML and serializes the output into JSON format. This tool leverages libraries like pyyaml to interpret the configuration and reformat it for API data interchange.

What is the best way to convert CSV exports to nested JSON structures?

The best way to convert CSV exports to nested JSON structures is by using a conversion tool that intelligently parses flat CSV data and reconstructs it into nested JSON. This process utilizes pandas for robust data parsing to preserve hierarchical relationships.

Does data conversion between XML and TOML preserve nested structures?

Yes, data conversion between XML and TOML can preserve nested structures. The conversion process uses xmltodict and toml libraries to accurately map hierarchical elements, ensuring complex nested data is maintained across different configuration formats.

How does batch processing work for converting multiple JSON files to CSV?

Batch processing for converting multiple JSON files to CSV works by iterating through a directory of files and applying the conversion logic to each one sequentially. This allows you to efficiently convert multiple files using pandas without manual reformatting.

Why do I need pyyaml and pandas to convert data formats?

You need pyyaml and pandas to convert data formats because pyyaml provides robust parsing for YAML files, while pandas handles structured data manipulation for formats like CSV and JSON. These dependencies ensure accurate serialization and prevent potential parsing errors.

When should I not use a generic data type converter for ETL pipelines?

You should not use a generic data type converter for ETL pipelines if your data requires highly custom transformations beyond standard format changes. While it handles JSON, CSV, XML, YAML, and TOML conversions, complex domain-specific data mapping may require specialized ETL scripts.