src/Models/Config.php
protected function isJson($string) {
        // json_decode a numeric string doesn't throw an error, so we have to check it manually
        if (! is_string($string) || is_numeric($string)) {
            return false;
        }
        $result = @json_decode($string);
        return (json_last_error() == JSON_ERROR_NONE);
    }
protected function isJson($string) {
        // json_decode a numeric string doesn't throw an error, so we have to check it manually
        if (! is_string($string) || is_numeric($string)) {
            return false;
        }
        $result = @json_decode($string);
        return (json_last_error() == JSON_ERROR_NONE);
    }
protected function isJson ( $ string ) { // json_decode a numeric string doesn't throw an error, so we have to check it manually if ( ! is_string ( $ string ) || is_numeric ( $ string ) ) { return false ; } $ result = @ json_decode ( $ string ) ; return ( json_last_error ( ) == JSON_ERROR_NONE ) ; }
Check to see if a string is JSON.

@param $string
@return bool
Check to see if a string is JSON .