我正在尝试将电子表格转换为将使用Exhibit 3.0阅读的json文件。这是一个样本电子表格(候选人1-6的技能):
label Skills
1 SQL
2 SQL, SAS
3
4 MS Office
5 MS Office, SQL
6 SAS
每当我尝试转换时,我得到:
[{"label":"1","Skills":"SQL"},
{"label":"2","Skills":"SQL, SAS"},
{"label":"3","Skills":""},
{"label":"4","Skills":"MS Office"},
{"label":"5","Skills":"MS Office, SQL"},
{"label":"6","Skills":"SAS"}]
我需要的是(注意方括号):
[{"label":"1","Skills":"SQL"},
{"label":"2","Skills":["SQL", "SAS"]},
{"label":"3","Skills":""},
{"label":"4","Skills":"MS Office"},
{"label":"5","Skills":["MS Office", "SQL"]},
{"label":"6","Skills":"SAS"}]
只有这样,Exhibit才会接受候选人可以拥有多项技能。有没有办法创建这些方括号?或者是否有其他方式可以设计电子表格,所以Exhibit会认识到候选人2有两种技能?我一直在使用R和Excel,到目前为止找不到解决方案。
谢谢!