How to convert JSON Array in JSON Object

I have a JSON Array in below format which I want to convert to JSON Object in (key,value) pair. Since I am new to JSON I don't know how to achieve this. { "id": [ "100", "101", "102" ], "Name": [ "ajit", "amol", "kiran" ], "sex": [ "Male", "Male", "Male" ] } I want to convert above in the format like [ { "id": "100", "Name": "ajit", "Sex": "Male" }, { "id": "101", "Name": "amol", "Sex": "Male" }, { "id": "102", "Name": "kiran", "Sex": "Male" } ] Can you guys share your valuable thoughts on how to do this please? Ajit
what programming language you used ?

以上就是How to convert JSON Array in JSON Object的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JSON 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准