首页 > 解决方案 > 在python中生成嵌套的Json

问题描述

我需要阅读一个表格,它会给我如下结果:

empid|name|age|Skills|proficiency
1|abc|25|java|beginner
1|abc|25|sql|expert

并在其中包含字典的数组中生成以下 json EMP 信息。如何在python中做到这一点?

{
"empid" :1
 "name":abc
"age":25
"Empinfo" :[ {
           "Skill" :"java",
           "proficiency" :"beginner"
           },
         {
           "Skill" :"sql",
           "proficiency" :"expert"
           },

          ]
}

标签: arrayspython-2.7

解决方案


推荐阅读