ExcelToJsonConverter
A Unity plugin to convert Excel files to Json
Install / Use
/learn @Benzino/ExcelToJsonConverterREADME
ExcelToJsonConverter
This is a simple editor plugin which allows you to convert Excel files to Json within Unity.
Please note this has only been tested on Unity Mac. However it should work on Windows, you will probably need to remove the ExcelToJsonConverter/Mono folder to avoid conflicts with Windows System.Data.dll.
How to use:
- Copy the contents of the ExcelToJsonConverter folder into your project's Assets/Editor folder.
- Open Unity project and select Tools -> Excel to Json Converter.
- Select input folder where Excel files are located.
- Select output folder to save Json files.
- Hit "Convert Excel Files" button.
- Check console window for conversion info.
How to call from code: Note: This is not designed for runtime use (although it should work in runtime, but will be slow).
ExcelToJsonConverter excelProcessor = new ExcelToJsonConverter();
excelProcessor.ConversionToJsonSuccessfull += ConversionToJsonSuccessfullCallback;
excelProcessor.ConversionToJsonFailed += ConversionToJsonFailedCallback;
excelProcessor.ConvertExcelFilesToJson(inputPath, outputPath, false);
This can be useful to integrate with your build scripts. See test project for example of this.
Notes:
- Supports .xls (1997 - 2004) and .xlsx (2007) excel file formats.
- Supports multiple sheets per file. Each sheet is saved separately to a Json file with the same name. (e.g. Sheet1 saved to Sheet1.json)
- Assumes that the first row of a sheet are column headers.
- If you want to ignore a column and not have it saved in the Json file, prefix the column header with '~'. E.G. ~Notes
- If you want to ignore a sheet and not have it converted to Json, prefix the sheet name with '~'. E.G. ~Temp
- Automatically scans and updates excel files when editor refreshes (e.g. after a script is changed)
This plugin uses (and would not be possible without) ExcelDataReader & Json.Net.
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
