{"id":13706355,"url":"https://github.com/tidys/excel2Json","last_synced_at":"2025-05-05T20:31:15.124Z","repository":{"id":88011962,"uuid":"67108297","full_name":"tidys/excel2Json","owner":"tidys","description":"excel转Json工具","archived":false,"fork":false,"pushed_at":"2018-05-05T01:49:35.000Z","size":13397,"stargazers_count":26,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T14:42:43.665Z","etag":null,"topics":["excel-to-json","excel2json","xlsx"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tidys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-01T07:24:41.000Z","updated_at":"2024-09-16T06:22:41.000Z","dependencies_parsed_at":"2024-01-14T20:17:33.644Z","dependency_job_id":"52b5c51f-e89c-465c-95cf-c1d2e4ade4ed","html_url":"https://github.com/tidys/excel2Json","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidys%2Fexcel2Json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidys%2Fexcel2Json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidys%2Fexcel2Json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidys%2Fexcel2Json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidys","download_url":"https://codeload.github.com/tidys/excel2Json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252570984,"owners_count":21769759,"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-to-json","excel2json","xlsx"],"created_at":"2024-08-02T22:00:54.461Z","updated_at":"2025-05-05T20:31:10.116Z","avatar_url":"https://github.com/tidys.png","language":"C#","funding_links":[],"categories":["C# #"],"sub_categories":[],"readme":"# excel2Json \nexcel 转换 Json 工具  \n- [v1.1 点击下载](https://github-production-repository-file-5c1aeb.s3.amazonaws.com/67108297/1976222?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180505%2Fus-east-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20180505T014717Z\u0026X-Amz-Expires=300\u0026X-Amz-Signature=df7182374cf1967eb5c6c88bf8a7d3be023d1237a6a62194fcc8f1c124c5d85e\u0026X-Amz-SignedHeaders=host\u0026actor_id=7894208\u0026response-content-disposition=attachment%3Bfilename%3Dtools.zip\u0026response-content-type=application%2Fzip)\n\n## 工具介绍\n采用c#编写开发, 将excel表格的数据转换成json格式,方便程序使用.\t\t\n\n## 工具特点\n1.该工具支持一个excel多个工作薄,方便相同模块的表格存放到一个excel\t\t\n2.工具可以停靠在窗口顶部隐藏,类似qq的功能\t\t\n3.工具可以导出txt格式,方便导入到数据库\t\t\n4.支持bat脚本,可以简单扩展你的想要的功能\t\t\n\n## 使用说明\n### 注意事项:\n1.程序在启动的时候,会读取exe所在目录下的文件夹,这一步很重要\t\t\n2.exe同级文件夹下必须存在 json/txt/xlsx 这三个目录,如果没有程序会自动生成\t\t\n3.excel文件必须存放在xlsx目录下,其他目录不予读取\t\t\t\n4.如果xlsx文件夹出现多层目录结构,该工具会自动检索出该目录下所有的excel文件\t\t\n5.如果使用过程中出现问题,请多留意下边的log提示信息\t\t\t\n###表格配置\n\u003e多工作薄配置表格(必须存在)\n\n|sheet|\tname\t|index\t|desc|\n|-------| --------| ------- | ------ |\n|lv\t|lv\t|1|关卡表|\n\n说明: \t\t\t\nsheet: 具体的数据表格名字,excel必须有工作薄\t\t\t\nname: 导出json时的文件名\t\t\t\nindex:该工作薄在excel的位置\t\t\t\ndesc:对该工作薄的一个简单描述说明,程序不会使用,可作为注释\t\t\t\n\n\u003e 具体的数据表格:\n\n|id|name|PowerCost|LvLimite|\n|-------| --------| ------- | ------ |\n|关卡编号|关卡名称|消耗体力|开启等级|\n|10010001|英雄出世1|    5|\t1|\n|10010002|英雄出世2|    6|\t2|\n|10010003|英雄出世3|    7|\t3|\n|10010004|英雄出世4|    8|\t4|\n第一行为最终json对象的key\t\t\t\n第二行为中文注释说明\t\t\t\n第三行之后为具体的数据\t\t\n####最终的excel请参考 excel2Json/DataConvert/bin/Debug/策划/xlsx/数值/test.xlsx, 最终转换的json\n```json\n[\n    {\n        \"id\": \"10010001\",\n        \"name\": \"英雄出世1\",\n        \"PowerCost\": \"5\",\n        \"LvLimite\": \"1\"\n    },\n    {\n        \"id\": \"10010002\",\n        \"name\": \"英雄出世2\",\n        \"PowerCost\": \"6\",\n        \"LvLimite\": \"2\"\n    },\n    {\n        \"id\": \"10010003\",\n        \"name\": \"英雄出世3\",\n        \"PowerCost\": \"7\",\n        \"LvLimite\": \"3\"\n    },\n    {\n        \"id\": \"10010004\",\n        \"name\": \"英雄出世4\",\n        \"PowerCost\": \"8\",\n        \"LvLimite\": \"4\"\n    }\n]\n```\n\n\t\t\n### 工具使用\n1.bat脚本:可指定bat脚本文件路径,按下F12即可执行该bat脚本,示例脚本:\t\t\n\n    :: 拷贝文件到目标文件\n    :: copy /y \n\t@echo off\n\tcd /d %~dp0\n\tset desDir=\"D:\\project\\mhgjClient\\assets\\resources\\json\"\n\t:: 遍历所在文件夹的json文件\n\tfor /R %%s in (*.json) do ( \n\t\techo %%s \n\t\tcopy /y %%s  %desDir%\t\n\t) \n\tpause\n\n2.载入excel之后,右击listView的item,弹出菜单,可以打开相应的 文件/文件夹, 如果文件夹已经打开,则该文件夹窗口置顶.\t\t\n3.选中listView的item之后,按下 空格键 可以迅速打开excel文件\t\t\n## 关于\n该工具是自己游戏开发生涯中的一个小积累\t\t\t\n如果你喜欢,请告诉你的小伙伴,\t\t\n如果不喜欢,请告诉我哪里不好(企鹅 774177933),或者直接在Issues里面提问,帮助我完善它\t\t\n### QQ群 \nCocosCreator插件开发交流: 224756137\t\n\n![群图片](http://7xq9nm.com1.z0.glb.clouddn.com/%E6%8F%92%E4%BB%B6%E4%BA%A4%E6%B5%81%E7%BE%A4.png)\t\n\n点击链接加入群【CocosCreator插件开发交流】：https://jq.qq.com/?_wv=1027\u0026k=5ANhoTC\t\n\n### QQ打赏:\t\t \t\t\t\n![enter image description here](http://7xq9nm.com1.z0.glb.clouddn.com/qqPay.png)\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidys%2Fexcel2Json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidys%2Fexcel2Json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidys%2Fexcel2Json/lists"}