【发布时间】:2015-06-06 07:00:16
【问题描述】:
我想创建一个以下格式的 JSON 文件。我是 JSON 新手,所以我不知道如何创建以 JSON 格式显示的数据。在此先感谢
{
"data": [
[
"Tiger Nixon",
"System Architect",
"Edinburgh",
"5421",
"2011\/04\/25",
"$320,800"
],
[
"Garrett Winters",
"Accountant",
"Tokyo",
"8422",
"2011\/07\/25",
"$170,750"
],
[
"Ashton Cox",
"Junior Technical Author",
"San Francisco",
"1562",
"2009\/01\/12",
"$86,
000"
],
[
"Donna Snider",
"Customer Support",
"New York",
"4226",
"2011\/01\/25",
"$112,000"
]
]
}
【问题讨论】:
-
你什么都没读吗?这是一些起点:php.net/manual/en/book.json.php
-
不,我搜索过 Stackoverflow.com stackoverflow.com/questions/15060887/…,但格式不同。
标签: javascript php json