Class BooleanFunction


  • public class BooleanFunction
    extends FunctionBase
    From http://docs.jsonata.org/boolean-functions.html

    $boolean(arg)

    Casts the argument to a Boolean using the following rules
    Argument typeResult
    Booleanunchanged
    string: emptyfalse
    string: non-emptytrue
    number: 0false
    number: non-zerotrue
    nullfalse
    array: emptyfalse
    array: contains a member that casts to truetrue
    array: all members cast to falsefalse
    object: emptyfalse
    object: non-emptytrue
    function: (functions are not currently supported)false