{"id":18577148,"url":"https://github.com/ahmagdy/csv-to-json-converter","last_synced_at":"2025-07-12T13:08:14.413Z","repository":{"id":57550766,"uuid":"108452670","full_name":"ahmagdy/CSV-To-JSON-Converter","owner":"ahmagdy","description":"A little script to convert CSV Files to JSON in easy and flexible way using GoLang.","archived":false,"fork":false,"pushed_at":"2019-03-20T08:45:04.000Z","size":4,"stargazers_count":19,"open_issues_count":1,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T21:43:51.156Z","etag":null,"topics":["convert-csv-files","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/ahmagdy.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":"2017-10-26T18:51:16.000Z","updated_at":"2023-11-23T13:52:36.000Z","dependencies_parsed_at":"2022-09-04T07:50:46.320Z","dependency_job_id":null,"html_url":"https://github.com/ahmagdy/CSV-To-JSON-Converter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmagdy/CSV-To-JSON-Converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmagdy%2FCSV-To-JSON-Converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmagdy%2FCSV-To-JSON-Converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmagdy%2FCSV-To-JSON-Converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmagdy%2FCSV-To-JSON-Converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmagdy","download_url":"https://codeload.github.com/ahmagdy/CSV-To-JSON-Converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmagdy%2FCSV-To-JSON-Converter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264995617,"owners_count":23694997,"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":["convert-csv-files","go","golang","json"],"created_at":"2024-11-06T23:28:00.322Z","updated_at":"2025-07-12T13:08:14.392Z","avatar_url":"https://github.com/ahmagdy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV-To-JSON-Converter\nA little script to convert CSV Files to JSON in easy and flexible way using GoLang.\n\n**The Reason** for this tool is i was in charge to convert a couple of csv files to JSON and \ni didn't find simple thing give me exactly what i expect from such a tool,\nand i looked for golang examples but i found most of it using struct for single case, so i built this to be flexible enough for any file.\n## How to use this tool:\n* After Downloading the go file you can run\n`go run main.go -path=C:\\\\TheFile.csv` or `go run main.go -path C:\\\\TheFile.csv` or after getting the executable file `myfile.exe -path=C:\\\\TheFile.csv`\n* you will have a new file in the same root as the csv one but with JSON extension.\n\n\n## Example:\nIf i have a csv file contains a people data **people.csv**:\n```csv\nId,Name,Age\n1,Ahmad,21\n2,Ali,50\n```\nand we need to convert it to json file:\n\n`go run main.go -path=C:\\Users\\User\\Desktop\\data\\src\\people.csv`\n\nafter writing this command you will get another file in the same directory called **people.json** with the data in the new format:\n```json\n[\n  {\n    \"Id\": 1,\n    \"Name\": \"Ahmad\",\n    \"Age\": 21\n  },\n  {\n    \"Id\": 2,\n    \"Name\": \"Ali\",\n    \"Age\": 50\n  }\n]\n```\n\nand that's it.\n\n## License:\n[The MIT License](https://github.com/Ahmad-Magdy/CSV-To-JSON-Converter/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmagdy%2Fcsv-to-json-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmagdy%2Fcsv-to-json-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmagdy%2Fcsv-to-json-converter/lists"}