mirror of
https://github.com/PGYER/codefever.git
synced 2026-09-03 07:17:12 +08:00
@@ -300,6 +300,7 @@ class Helper
|
||||
public static function parseJSON(string $json, string $delimiter = '"')
|
||||
{
|
||||
$json = str_replace($delimiter, '"', $json);
|
||||
$json = preg_replace('/[\x01-\x1f\x7f]/', ' ', $json);
|
||||
$data = json_decode($json, TRUE);
|
||||
|
||||
return $data;
|
||||
|
||||
Reference in New Issue
Block a user