We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cdce14 + ebcca9e commit 91e8a8eCopy full SHA for 91e8a8e
src/Common/Common.php
@@ -60,7 +60,8 @@ protected static function is_json($str): bool
60
if (!is_string($str)) {
61
return false;
62
}
63
- return json_decode($str, true) !== null;
+ $json = json_decode($str);
64
+ return $json && $str != $json;
65
66
67
protected static function safeJson($jsonData, $asArray = false)
0 commit comments