def is_valid_jsonp_callback_value(value):

    for identifier in value.split(u'.'):
        while '[' 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

# ------------------------------------------------------------------------------
# test
# ------------------------------------------------------------------------------
Return whether the given ``value`` can be used as a JSON-P callback.
dataset/ETHPy150Open dgraziotin/dycapo/piston/validate_jsonp.py/is_valid_jsonp_callback_value