Skip to main content
Converts a value into a boolean (true/false). Use this when a value should be a real on/off flag but arrives as text or a number, for example a stock flag that comes in as the word "yes" or the digit 1 and needs to become a clean true or false for the target system. The rule is the common-sense one: the text 1, true, on, or yes (capitalisation is ignored) becomes true. Everything else, including 0, false, no, an empty value, or any unrelated text, becomes false.

Fields

This mapper has no settings to configure. Point it at the value you want to convert and it does the rest.

Sample data

FieldValue
(no settings)
Input:
{
    "inStock": "yes"
}
Output:
{
    "inStock": true
}