dongxun2903
2019-06-19 11:50
浏览 1.4k
已采纳

如何将JSON数组转换为对象

I have following json

{"data":{"0":{"0":"1","1":"Test1","2":"Test2","DT_RowId":"row_1"}}}

I want to remove the outer level index

I want as below

{"data":[{"0":"1","1":"Test1","2":"Test2","DT_RowId":"row_1"}]}

This should be done in Go.

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题