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.
1 parent 2c31117 commit af35026Copy full SHA for af35026
src/Common/Common.php
@@ -54,6 +54,9 @@ protected static function is_json($str): bool
54
protected static function safeJson($jsonData,$asArray = false){
55
$jsonData = json_decode($jsonData,true);
56
$safeJsonData = [];
57
+ if (!is_array($jsonData)){
58
+ return $jsonData;
59
+ }
60
foreach ($jsonData as $key => $value){
61
if (self::is_json($value)){
62
$safeJsonData[$key] = self::safeJson($value,true);
0 commit comments