Class TypeFunction


  • public class TypeFunction
    extends FunctionBase
    From http://docs.jsonata.org/string-functions.html: $trim(str) Normalizes and trims all whitespace characters in str by applying the following steps: * All tabs, carriage returns, and line feeds are replaced with spaces. * Contiguous sequences of spaces are reduced to a single space. * Trailing and leading spaces are removed. If str is not specified (i.e. this function is invoked with no arguments), then the context value is used as the value of str. An error is thrown if str is not a string. Examples $trim(" Hello \n World ")=="Hello World"