function cleantalk_is_JSON in Anti Spam by CleanTalk 8.3
1 call to cleantalk_is_JSON()
- Cleantalk::sendRequest in src/
lib/ Cleantalk/ Antispam/ Cleantalk.php - Send JSON request to servers
File
- src/
lib/ Cleantalk/ Antispam/ Cleantalk.php, line 785
Namespace
Drupal\cleantalk\lib\Cleantalk\AntispamCode
function cleantalk_is_JSON($string) {
return is_string($string) && (is_object(json_decode($string)) || is_array(json_decode($string))) ? true : false;
}