【发布时间】:2018-08-07 12:29:54
【问题描述】:
我有这样的 json 数据Code in here
这个json结果来自
$path = public_path() . "/users/project/$endpoint/$id_resource.json";
$file = File::get($path);
return $file
如果我想用 url 搜索 id : 1 : localhost/show/json?id=1
结果是
[
{
"id": 1,
"Name": {
"FirstName": "Wilmer",
"LastName": "Crona",
"FullName": "Mr. Cameron Prosacco"
},
"Address": {
"Address1": "84154 Vickie Burg Apt. 994",
"Address2": "Suite 339",
"ZipCode": "89080-0376"
},
"Phone": "316-269-7694 x1364"
}
]
我该怎么办?
【问题讨论】: