AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Csv To Json

skill-danielrosehill-claude-data-wrangler-plugin-csv-to-json · by danielrosehill

Convert between CSV and JSON formats — CSV to JSON array, CSV to JSONL, JSON to CSV, JSONL to CSV. Handles type inference, header/record mapping, nested structure flattening, and encoding issues. Use when the user wants to reformat tabular data between row-oriented CSV and object-oriented JSON forms.

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-danielrosehill-claude-data-wrangler-plugin-csv-to-json

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-danielrosehill-claude-data-wrangler-plugin-csv-to-json)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Csv To Json? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

CSV ↔ JSON Conversions

Bidirectional conversion between CSV and JSON/JSONL.

Supported directions

  • CSV → JSON array — single file containing a JSON array of objects.
  • CSV → JSONL — one JSON object per line (streaming-friendly).
  • JSON → CSV — flatten JSON array of objects to CSV.
  • JSONL → CSV — streaming line-by-line conversion.

Procedure

  1. Confirm source and target — file paths and directions.
  2. Detect CSV dialect (if CSV is the source):
  • Delimiter (,, ;, \t, |) — use csv.Sniffer or ask user if ambiguous.
  • Quote character (", ').
  • Header present? Assume yes; confirm if the first row looks like data.
  • Encoding — try utf-8, fall back to utf-8-sig (BOM), then cp1252 / latin-1. Report the encoding used.
  1. Type inference for CSV → JSON:
  • Default: preserve as strings (safest).
  • Optional: infer types (int, float, bool, null) — ask the user. Use pandas' inference or explicit conversion.
  • Handle nulls: empty string, NA, null, NaN → JSON null (confirm the sentinel list with user).
  1. Nested structures for JSON → CSV:
  • If JSON has nested objects/arrays, offer:
  • Flatten with dotted keys (e.g. address.city, tags[0]).
  • JSON-encode nested fields as strings in the CSV.
  • Error — refuse and point to json-restructure for explicit flattening.
  • Default: flatten with dotted keys; confirm with user.
  1. Write the output with a sensible default name (.json, .jsonl, .csv).
  2. Validate the round-trip — load the output and report row/object count matching the source.

Dependencies

pip install pandas

Standard library csv and json are sufficient for many cases; pandas is convenient for type inference and large files.

Edge cases

  • Very large files — use streaming (JSONL line-by-line, CSV chunked via pd.read_csv(chunksize=...)). Warn if input > 1 GB and recommend JSONL over JSON array.
  • Mixed types per column — pandas may coerce; report columns that ended up as object when numeric was expected.
  • Fields containing newlines — CSV must quote them; JSON handles natively. Verify round-trip preserves content.
  • Date / datetime — JSON has no native datetime type. Emit ISO 8601 strings; record the format in the data dictionary.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.