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
true
false
ends-with("foo", "oo") returns true
ends-with("foo", "oo")
ends-with($request/url, ".json") could be used to identify JSON resources
ends-with($request/url, ".json")