Creating table using json data

邮差的信 提交于 2019-12-11 17:54:07

问题


Below is my json part:

 var Json = {
 "Sample" : {
   "Sample Demo": {
     "1": {"JAN": {"ID": "1","Name": "Jim"}},
     "2": {"FEB": {"ID": "2","Name": "Jack" } }
  }},
 "Idname" : "2",
  "Date" : "01/28/2014",
  "State" : "1"
  }

I need the above json to create a table in the following format.

TABLE:

JAN FEB 1 2 Jim Jack

I need both header and body of table from json. Also only one part of the whole json will be shown as table, rest will be shown as normal fields.

Also, whenever the starting keyname = "JAN" is found and ending keyname="FEB" is found, i want to load the table automatically.

Demo/example are welcome..

来源:https://stackoverflow.com/questions/22130859/creating-table-using-json-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!