Created
February 12, 2023 16:16
-
-
Save yne/22ad8abdb03df2f37def499f4622c2e0 to your computer and use it in GitHub Desktop.
excel sheet to json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c 'import openpyxl,sys,json; json.dump([[cell.value for cell in row] for row in openpyxl.load_workbook(sys.stdin.buffer).worksheets[int(sys.argv[1])].iter_rows()], sys.stdout)' 3 < my.xlsm | jq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment