Booleans and null

JSONiq also introduces three more literals for constructing booleans and nulls: true, false and null. This makes in particular the functions true() and false() superfluous.

Figure 17. BooleanLiteral

BooleanLiteral

Figure 18. NullLiteral

NullLiteral

Example 23. Boolean literals (true)

true
      

Result: true


Example 24. Boolean literals (false)

false
      

Result: false


Example 25. Null literals

null
      

Result: null