csv2json-cli
Same application for the Intro to Go Workshop
A simple Go command-line tool that converts CSV files into JSON, built as a learning exercise for an Intro to Go workshop.
csv2json-cli is a simple command-line tool that converts CSV files into JSON format. If you've ever had data sitting in a spreadsheet or CSV file and needed it structured as JSON — say, for an API, a database import, or a web app — this tool does that conversion for you.
CSV (comma-separated values) is the format you get when you export a spreadsheet. It's plain text, with each row on a line and values separated by commas. JSON is a different text format that organizes data into labeled fields, which most modern web services and applications expect. This tool reads a CSV file and outputs the equivalent data as JSON, saving you from manually reformatting it.
This was built as part of an "Intro to Go Workshop," which means it's primarily a learning exercise. People working through that workshop would use it to understand how to build command-line tools in Go, the programming language. It could also be handy for anyone who just needs a quick CSV-to-JSON conversion without reaching for a heavier tool.
The README doesn't go into detail on how to use it, what flags or options it supports, or how to install it. Because it's a workshop project, the expectation is likely that you're following along with course material rather than using it as a standalone product. The project has minimal documentation, so you'd need to look at the source code or the workshop itself for more context.
Where it fits
- Convert a spreadsheet export (CSV) into JSON for use in a web app or API.
- Follow along with the Intro to Go Workshop to learn how CLI tools are built in Go.
- Quickly reformat CSV data for a database import without installing a heavier tool.