We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src/Common/Common.php
protected static function safeJson($jsonData, $asArray = false) { $jsonData = json_decode($jsonData, true); $safeJsonData = []; if (!is_array($jsonData)) { return $jsonData; } foreach ($jsonData as $key => $value) { if (self::is_json($value)) { $safeJsonData[$key] = self::safeJson($value, true); if (gettype($safeJsonData[$key]) != gettype($value)) { $safeJsonData[$key] = $value; } } elseif (is_string($value)) { $safeJsonData[$key] = self::safeJsonString($value); } elseif (is_array($value)) { $safeJsonData[$key] = self::safeJson(json_encode($value), true); } else { $safeJsonData[$key] = $value; } } return $asArray ? $safeJsonData : json_encode($safeJsonData); }
The text was updated successfully, but these errors were encountered:
@mehmetbeyHZ
Sorry, something went wrong.
@Ting-Yu Can you send details? json data, db Pgsql - Mysql and Columns, errors .. etc
No branches or pull requests
src/Common/Common.php
The text was updated successfully, but these errors were encountered: