解码这个json的正确方法是什么?
我的模型有
protected $casts = [
'items' => 'array'
];
我的 json 项目:
{
"data": [
{
"name": "Google",
"link": "http://google.com"
},
{
"name": "ALink",
"link": "http://link.org"
}
]
}
json_decode($request->items)返回错误:ErrorException: Object of class stdClass could not be converted to string in file
HUWWW