diff --git a/src/Common/Common.php b/src/Common/Common.php index d4f2e9a..61ef75d 100644 --- a/src/Common/Common.php +++ b/src/Common/Common.php @@ -60,7 +60,8 @@ protected static function is_json($str): bool if (!is_string($str)) { return false; } - return json_decode($str, true) !== null; + $json = json_decode($str); + return $json && $str != $json; } protected static function safeJson($jsonData, $asArray = false)