Skip to main content

$lookupTable

Signature: $lookupTable(table, filterKeys, filterPredicates[, options]) Parameters:
  • table - Source lookup table. All lookup tables are available inside $tables global variable
  • filterKeys - String or array of strings of keys to filter on
  • filterPredicates - One or more predicates to filter on. If filterKeys is an array, filterPredicates must be an array of the same length
  • options - Object with optional properties:
    • wildcard - Wildcard string to use for matching. E.g. if set to ”*”, then “express_aero” will match “express_*”.
Returns row from a lookup table where all filter conditions are satisfied. Supports wildcard matching. This function is provided by Stedi and isn’t a part of the JSONata standard library. Example Given following lookup table named “shipping”:

$uuid

Signature: $uuid() Create a version 4 (random) UUID. This function is provided by Stedi and isn’t a part of the JSONata standard library. Example