【发布时间】:2016-05-10 03:35:06
【问题描述】:
我有这样的json文件
[{
"Shop_name": "916",
"Shop_id": "916TCR",
"Address":"cdsasffafa"
"numbers": "4",
"mob_no": "9447722856"
}, {
"Shop_name": "Chicking",
"Shop_id": "CKGTCR",
"Address":"afagagg",
"numbers": "8",
"mob_no": "6767564532"
}]
我想将其视为 HTML 表格,其中行标题为 Shop_name、Shop_id、Address 和下一行的数据。
我尝试对其进行解码并显示为表格 (How can i parse json into a html table using PHP?)。 但是这里的 Json 文件格式不同。 也想知道 Json 文件是否会随着 [0],[1],[2]....
变大【问题讨论】:
-
我认为带有奇怪双引号的 JSON 不是有效的
-
更正 JSON !@RiggsFolly
-
所以现在字符集是固定的,只是做一些编码的情况
-
请显示您实际用于尝试使其工作的实际代码
标签: php html json html-table