{"id":18825146,"url":"https://github.com/baltimore-sun-data/csv2json","last_synced_at":"2025-04-14T01:31:22.278Z","repository":{"id":57519002,"uuid":"120480360","full_name":"baltimore-sun-data/csv2json","owner":"baltimore-sun-data","description":"Simple tool for converting CSVs to JSON","archived":false,"fork":false,"pushed_at":"2018-12-05T19:51:44.000Z","size":5,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-27T15:49:07.993Z","etag":null,"topics":["command-line-tool","csv","go","golang","json"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baltimore-sun-data.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-06T15:38:26.000Z","updated_at":"2023-08-24T09:15:11.000Z","dependencies_parsed_at":"2022-09-26T18:00:47.358Z","dependency_job_id":null,"html_url":"https://github.com/baltimore-sun-data/csv2json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baltimore-sun-data%2Fcsv2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baltimore-sun-data%2Fcsv2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baltimore-sun-data%2Fcsv2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baltimore-sun-data%2Fcsv2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baltimore-sun-data","download_url":"https://codeload.github.com/baltimore-sun-data/csv2json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248807558,"owners_count":21164706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line-tool","csv","go","golang","json"],"created_at":"2024-11-08T00:58:34.435Z","updated_at":"2025-04-14T01:31:21.998Z","avatar_url":"https://github.com/baltimore-sun-data.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csv2json\n\nSimple tool for converting CSVs to JSON\n\n## Installation\n\nFirst install [Go](http://golang.org).\n\nIf you just want to install the binary to your current directory and don't care about the source code, run\n\n```shell\nGOBIN=$(pwd) GOPATH=$(mktemp -d) go get github.com/baltimore-sun-data/csv2json\n```\n\n## Usage\n\n```shell\n$ csv2json\nUsage of csv2json:\n  -dest string\n        Destination file (default: stdout)\n  -no-headers\n        Return each row as an array\n  -src string\n        Source file (default: stdin)\n\n$ more test.csv\na,b,c\n1,2,3\n\n$ csv2json | json-tidy\n[\n        {\n                \"a\": \"1\",\n                \"b\": \"2\",\n                \"c\": \"3\"\n        }\n]\n\n$ csv2json -src test.csv -no-headers | json-tidy\n[\n        [\n                \"a\",\n                \"b\",\n                \"c\"\n        ],\n        [\n                \"1\",\n                \"2\",\n                \"3\"\n        ]\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaltimore-sun-data%2Fcsv2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaltimore-sun-data%2Fcsv2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaltimore-sun-data%2Fcsv2json/lists"}