boolean ends-with(string haystack, string needle)
The function ends-with returns true if the first argument string
ends with the second argument string, and otherwise returns false.
ends-with("foo", "oo")returnstrueends-with($request/url, ".json")could be used to identify JSON resources