我收到来自第三方供应商的json响应作为json响应,其中包含一些额外的括号和大括号示例:
$data= \GuzzleHttp\json_decode(curl_exec($ch),true);
输出是:
"description" => """Hey guys,
Adobe Photoshop CS6\n
Apple Final Cut Pro X\n
ScreenFlow"""
或者有时候这样:
)]}' {"key":["
更新示例:
)]}' {
"names": [
"a",
"b",
"c",
"d"
],
"val": "data1",
"bool": true
}
为什么我会得到这种反应?