def is_valid_jsonp_callback_value(value):
 for identifier in value.split(u'.'):
  while (u'[' in identifier):
   if (not has_valid_array_index(identifier)):
    return False
   identifier = replace_array_index(u'', identifier)
  if (not is_valid_javascript_identifier(identifier)):
   return False
 return True

def is_valid_jsonp_callback_value ( value ) : for identifier in value . split ( u'.' ) : while ( u'[' in identifier ) : if ( not has_valid_array_index ( identifier ) ) : return False identifier = replace_array_index ( u'' , identifier ) if ( not is_valid_javascript_identifier ( identifier ) ) : return False return True
return whether the given value can be used as a json-p callback .