在制作表格时遇到JSON格式的数据,格式如下
id | info |
10 | {"term1":"x1","term2":"x2"} |
10 | {"term1":"y1","term2":"y2"} |
20 | {"term1":"z1","term2":"z2"} |
30 | {"term1":"m1","term2":"m2"} |
想要做到将JSON格式数据解析,同时将竖表转为横表:
id | info1_term1 | info1_term2 | info2_term1 | info2_term2 |
10 | x1 | x2 | y1 | y2 |
20 | z1 | z2 | ||
30 | m1 | m2 |
由于不会解析JSON格式数据,之前的做法是将info列根据id进行文本合并||,再用excel手动分列,比较麻烦。请各位赐教如何实现,非常感谢!
Thanks,