我想將我的數據speadsheet轉換爲JSON數組的數組。ODS文件到JSON
該網站做到這一點:http://www.shancarter.com/data_converter/index.html 我查看了源代碼。
但我想是一個宏/腳本/展期或以任何方式將程序到我的.ods檔案轉換成JSON文件:
像:
NAME VALUE COLOR DATE
Alan 12 blue Sep. 25, 2009
Shan 13 "green blue" Sep. 27, 2009
John 45 orange Sep. 29, 2009
Minna 27 teal Sep. 30, 2009
要:
[
["Alan",12,"blue","Sep. 25, 2009"],
["Shan",13,"green\tblue","Sep. 27, 2009"],
["John",45,"orange","Sep. 29, 2009"],
["Minna",27,"teal","Sep. 30, 2009"]
]
你問這個嗎? http://stackoverflow.com/questions/4745024/spreadsheet-to-python-dictionary-conversion – 2012-02-19 22:14:11
調查http://pypi.python.org/pypi/odfpy/0.9.4或http://pypi.python。 org/pypi/ezodf/0.2.1 – 2012-02-19 22:17:18
我的解決方案:使用小python腳本將ODS轉換爲CSV並將CSV轉換爲JSON – damio 2012-02-20 18:14:23