key | value | description |
---|---|---|
id (required) | customComputation | - This method has access to the parsed_document object at verbosity = 0. - This method doesn’t infer Sensible types. It outputs string, number, boolean, null , or an array of those. For example, adding two currencies results in a number. - This method returns null if you attempt to reference a variable that Sensible can’t find in the parsed_document. - This method returns null if calculations include a null. For example, 5 + null field = null. If you instead want 5 + null field = 5, then implement logic to replace nulls with zeros. For an example, see Example 1. |
jsonLogic (required) | JsonLogic object | Transforms the output of one or more Field objects using JsonLogic. Supports all JsonLogic operations and extends them with Sensible operations. For more information, see the following section. Double escape any dots in the field keys (for example, delivery\\.zip\\.code). Use dot notation to access arrays, for example, test_table.columns.3.values to access the 4th column in a table. |
var
operation to test that an output value isn’t null. The var
operation retrieves extracted field values using field id
keys.
regex
is a Javascript-flavored regular expression.
Double escape special regex characters, since the regex is in a JSON object (for example, \\s
, not \s
, to represent a whitespace character). This operation does not support regular expression flags such as i
for case insensitive.
regex
is a Javascript-flavored regular expression. Double escape special regex characters, since the regex is in a JSON object (for example, \\s
, not \s
, to represent a whitespace character). This operation supports:
i
for case insensitive.Example document | Download link |
---|
Example document | Download link |
---|