{"id":17914205,"url":"https://github.com/knadh/csv2json","last_synced_at":"2025-03-23T23:30:45.921Z","repository":{"id":44906833,"uuid":"420431368","full_name":"knadh/csv2json","owner":"knadh","description":"csv2json is a fast utility that converts CSV files into JSON line files. An experiment in Zig lang.","archived":false,"fork":false,"pushed_at":"2024-03-22T08:13:19.000Z","size":14,"stargazers_count":40,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T00:17:55.815Z","etag":null,"topics":["cli","csv","csv-exporter","csv-json","csv-json-converter","csv-parser","csv-reader"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/knadh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-23T14:12:48.000Z","updated_at":"2025-02-26T10:11:12.000Z","dependencies_parsed_at":"2024-10-28T19:56:53.282Z","dependency_job_id":null,"html_url":"https://github.com/knadh/csv2json","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knadh%2Fcsv2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knadh%2Fcsv2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knadh%2Fcsv2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knadh%2Fcsv2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knadh","download_url":"https://codeload.github.com/knadh/csv2json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245186438,"owners_count":20574551,"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":["cli","csv","csv-exporter","csv-json","csv-json-converter","csv-parser","csv-reader"],"created_at":"2024-10-28T19:56:49.159Z","updated_at":"2025-03-23T23:30:45.637Z","avatar_url":"https://github.com/knadh.png","language":"Zig","readme":"## csv2json\n\ncsv2json is a fast utility that converts CSV files into JSON line files.\n\n*This is my first \"hello, world\" [Zig](https://ziglang.org) learning exercise. The program may be buggy and/or faulty. Use with caution.*\n\n\n### Usage\n```shell\n# Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz.\n#\n# 92 MB CSV file with 1 million rows. Sample:\n# instrument_token,exchange_token,tradingsymbol,isin,name,last_price,expiry,strike,tick_size,lot_size,instrument_type,segment,exchange\n# 272376070,1063969,\"EURINR21DECFUT\",\"\",\"EURINR\",0,\"2021-12-29\",0,0.0025,1,\"FUT\",\"BCD-FUT\",\"BCD\"\n# ...\n\n$ ./csv2json -i /tmp/1mil.csv \u003e /tmp/1mil.json\nReading /tmp/1mil.csv ...\nProcessed 1000000 lines in 884.61 milliseconds (1000000.00 lines / second)\n\n$ head -n /tmp/1mil.json\n{\"instrument_token\": 272376070, \"exchange_token\": 1063969, \"tradingsymbol\": \"EURINR21DECFUT\", \"isin\": null, \"name\": \"EURINR\", \"last_price\": 0, \"expiry\": \"2021-12-29\", \"strike\": 0, \"tick_size\": \"0.0025\", \"lot_size\": 1, \"instrument_type\": \"FUT\", \"segment\": \"BCD-FUT\", \"exchange\": \"BCD\"}\n{\"instrument_token\": 272086278, \"exchange_token\": 1062837, \"tradingsymbol\": \"EURINR21NOVFUT\", \"isin\": null, \"name\": \"EURINR\", \"last_price\": 0, \"expiry\": \"2021-11-26\", \"strike\": 0, \"tick_size\": \"0.0025\", \"lot_size\": 1, \"instrument_type\": \"FUT\", \"segment\": \"BCD-FUT\", \"exchange\": \"BCD\"}\n```\n\n### Download\nDownload the latest release from the [releases](https://github.com/knadh/csv2json/releases) page.\n\nOr, to compile with Zig (tested with v0.11.0):\n- `git clone --recursive git@github.com:knadh/csv2json.git`\n- `cd csv2json \u0026\u0026 zig build`\n- The binary will be in `zig-out/bin`\n\n\nLicensed under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknadh%2Fcsv2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknadh%2Fcsv2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknadh%2Fcsv2json/lists"}