/** * Check if input string is possibly a JSON array * * @since 3.0.0 * @param string $string * @return bool True if string is possible JSON, false otherwise */ private function is_possibly_json_array($string) { return '[]' == $string || SV_WC_Helper::str_starts_with($string, '[{') && SV_WC_Helper::str_ends_with($string, '}]'); }