func escape(token string) string {
	token = strings.Replace(token, "~", "~0", -1)
	token = strings.Replace(token, "/", "~1", -1)
	return url.PathEscape(token)
}
// escape converts given token to valid json-pointer token
escape converts given token to valid json-pointer token
// escape converts given token to valid json - pointer token
func escape(token string) string {
	token = strings.Replace(token, "~", "~0", -1)
	token = strings.Replace(token, "/", "~1", -1)
	return url.PathEscape(token)
}
func escape ( token string ) string { token = strings . Replace ( token , " " , " " , - 1 ) token = strings . Replace ( token , " " , " " , - 1 ) return url . PathEscape ( token ) }
escape converts given token to valid json-pointer token
escape converts given token to valid json - pointer token