{"id":24862616,"url":"https://github.com/takana671/jsonexcel","last_synced_at":"2026-05-05T05:41:09.637Z","repository":{"id":55416807,"uuid":"264448389","full_name":"taKana671/JsonExcel","owner":"taKana671","description":"Export JSON-format data to Excel like RDB or the exported data in Excel to JSON file.","archived":false,"fork":false,"pushed_at":"2021-01-10T13:00:06.000Z","size":2289,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-31T22:58:48.465Z","etag":null,"topics":["excel","json","json-excel","json-export","openpyxl","tkinter","tkinter-gui","tkinter-python","xlsxwriter"],"latest_commit_sha":null,"homepage":"","language":"Python","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/taKana671.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":"2020-05-16T13:55:44.000Z","updated_at":"2021-01-17T14:14:04.000Z","dependencies_parsed_at":"2022-08-14T23:50:46.150Z","dependency_job_id":null,"html_url":"https://github.com/taKana671/JsonExcel","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taKana671%2FJsonExcel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taKana671%2FJsonExcel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taKana671%2FJsonExcel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taKana671%2FJsonExcel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taKana671","download_url":"https://codeload.github.com/taKana671/JsonExcel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245707211,"owners_count":20659532,"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":["excel","json","json-excel","json-export","openpyxl","tkinter","tkinter-gui","tkinter-python","xlsxwriter"],"created_at":"2025-01-31T22:58:52.247Z","updated_at":"2026-05-05T05:41:09.599Z","avatar_url":"https://github.com/taKana671.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JsonExcel\n\nExport JSON-format data to Excel like RDB or the exported data in Excel to JSON file.\n\n\n![spec](https://user-images.githubusercontent.com/48859041/101023648-67febd80-35b6-11eb-9e06-b6146aef7c04.png)\n\n\n# Requirements\n\n* Python 3.8\n* openpyxl\n* xlsxwriter\n\n\n# Environment\n\n* Windows10\n* Excel 2016\n\n\n# Usage\n\n ### *class* ToExcel(path)\n \n  * Export JSON-format data to Excel like RDB\n  \n  ```bash\n  from jsonexcel import ToExcel\n  \n  to_excel = ToExcel(path)                                    # path: JSON file path\n  to_excel.convert()                                          # When export all data\n  to_excel.partial_convert(column name 1, column name 2, ...) # When export selected data\n                                                              # if json_data is {'aa': 1, 'bb': {'cc': 2, 'dd': [1, 2, 3, 4]}},  \n                                                              #    column name is like 'aa', 'bb.cc', 'bb.dd'. \n  ```\n  \n  ### *class* FromExcel(path)\n  \n   * Export data in Excel to JSON file. \n   * The Excel must be the file output with convert method of ToExcel class.  \n   \n   ```bash\n   from jsonexcel import FromExcel\n   \n   from_excel = FromExcel(path)                                  # path: Excel file path\n   from_excel.convert()                                          # Export data to JSON file\n   from_excel.convert(\n       indent=4,                                                 # If you need indent on JSON file, specify number.\n       replacement={'apps.app_id': 'app-id, 'price': 'prices'}   # If you need to change key name, specify dict {compressed key: edited last_level key}.\n    )                                                        \n   ```\n\n\n# Note\n  \n* If hyphens(-) or dots(.) are found in keys in a JSON file, they are replaced with underbar(\\_) before exported to an Excel file.\n* When exporting data in Excel to JSON file, specify argument(replacement) if you want to change keys in which hyphens or dots were replaced with underbar.\n\n\n# Converter Tool\n  \n  \n![converter_demo](https://user-images.githubusercontent.com/48859041/102998457-8713be00-456a-11eb-8899-10b9f3399c22.gif)  \n  \n  \n ```bash\n \u003e\u003e\u003epython converter.py\n ```\n\n ### Export JSON-format data to Excel\n \n  1. Select [ToExcel] tab.\n  2. Click [Open] button to select a JSON file.\n  3. If you need, click keys in the listbox to select data to be exported.\n     * If you want to cancel the selection, click the [Deselect] button.\n     * If [Deselect] button is clicked, all the selected keys are canceled.\n  4. Click [Convert] button.\n  \n \n ### Export data in Excel to JSON file\n \n  1. Select [FromExcel] tab.\n  2. Click [Open] button to select an Excel file.\n  3. If you need, edit keys.\n     * Click a key you want to edit in the left listbox.\n     * The key you clicked is entered into the right textbox.\n     * Edit the key and click [OK] button.\n     * If [OK] button is clicked, the edited key is moved into the right listbox.\n     * If you want to cancel the edit, select the edited key in the right listbox and click [Deselect] button.\n  4. Click [Convert] button.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakana671%2Fjsonexcel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakana671%2Fjsonexcel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakana671%2Fjsonexcel/lists"}