{"id":21404742,"url":"https://github.com/feluelle/json-to-csv","last_synced_at":"2026-05-20T02:44:52.443Z","repository":{"id":103283664,"uuid":"91126947","full_name":"feluelle/json-to-csv","owner":"feluelle","description":"Converts JSON to CSV","archived":false,"fork":false,"pushed_at":"2017-07-15T12:33:21.000Z","size":77,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T03:41:24.573Z","etag":null,"topics":["csv","json","json-to-csv","transform"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/feluelle.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":"2017-05-12T20:21:24.000Z","updated_at":"2020-05-09T06:08:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"61e37f9e-065a-407a-8fa8-017c758d7986","html_url":"https://github.com/feluelle/json-to-csv","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/feluelle%2Fjson-to-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feluelle%2Fjson-to-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feluelle%2Fjson-to-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feluelle%2Fjson-to-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feluelle","download_url":"https://codeload.github.com/feluelle/json-to-csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902291,"owners_count":20366259,"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":["csv","json","json-to-csv","transform"],"created_at":"2024-11-22T16:17:52.507Z","updated_at":"2026-05-20T02:44:52.390Z","avatar_url":"https://github.com/feluelle.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-to-csv\nConverts JSON to CSV\n\n## How it works\nThe field's **biggest value size** determines the **number of csv lines**.\n* Writes values in each row as long as the biggest size is not reached.\n* The index of the array will be incremented after each row.\nThat means after an array size is reached there won't be further values in this column.\n\n## Conditions (to work as expected)\n* The json is **not allowed** to have an **array inside** an **array**.\n* Each object in an **array** has to contain the **same fields**.\n\n## Example\nThis json..\n```\n{\n    \"field1\": \"value1\",\n    \"field2\": [1, 2, 3, 4, 5, 6, 7, 8, 9],\n    \"field3\": {\n        \"field3-a\": 4.0\n    },\n    \"field4\": { },\n    \"field5\": [{\n        \"field5-a\": 5,\n        \"field5-b\": 5.1 \n    }, {\n        \"field5-a\": 6,\n        \"field5-b\": 6.1 \n    }, {\n        \"field5-a\": 7,\n        \"field5-b\": 7.1 \n    }, {\n        \"field5-a\": 8,\n        \"field5-b\": 8.1 \n    }, {\n        \"field5-a\": 9,\n        \"field5-b\": 9.1 \n    }],\n    \"field6\": [ ]\n}\n```\nwill be this csv..\n```\nfield1;field2;field3.field3-a;field4;field5.field5-a;field5.field5-b;field6\nvalue1;1;4.0;;5;5.1;\nvalue1;2;4.0;;6;6.1;\nvalue1;3;4.0;;7;7.1;\nvalue1;4;4.0;;8;8.1;\nvalue1;5;4.0;;9;9.1;\nvalue1;6;4.0;;;;\nvalue1;7;4.0;;;;\nvalue1;8;4.0;;;;\nvalue1;9;4.0;;;;\n```\ndisplayed as a table..\n\nfield1 | field2 | field3.field3-a | field4 | field5.field5-a | field5.field5-b | field6\n---|---|---|---|---|---|---\nvalue1 | 1 | 4.0 | | 5 | 5.1 |\nvalue1 | 2 | 4.0 | | 6 | 6.1 |\nvalue1 | 3 | 4.0 | | 7 | 7.1 |\nvalue1 | 4 | 4.0 | | 8 | 8.1 |\nvalue1 | 5 | 4.0 | | 9 | 9.1 |\nvalue1 | 6 | 4.0 | |   |     |\nvalue1 | 7 | 4.0 | |   |     |\nvalue1 | 8 | 4.0 | |   |     |\nvalue1 | 9 | 4.0 | |   |     |\n\n## Dependencies\n\n### json\nThis library uses com.fasterxml.jackson.core's jackson-databind to deserialize json to a map.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeluelle%2Fjson-to-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeluelle%2Fjson-to-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeluelle%2Fjson-to-csv/lists"}