# TO_BOOLEAN_ARRAY function

## `TO_BOOLEAN_ARRAY` function

| Function Name | Description | Usage | Input parameter | Return value |
|---|---|---|---|---|
| `TO_BOOLEAN_ARRAY` | Converts a JSON array to a boolean array. | `TO_BOOLEAN_ARRAY()` | N/A | A boolean array. |

## Supported data type


The `TO_BOOLEAN_ARRAY` function supports the following data type:

- JSON

## Example: Convert JSON array to a boolean array


**Sample data** : `$var1$ = ["true", "false", "false"]`


**Usage** : `$var1$.TO_BOOLEAN_ARRAY()`
Convert var1 to a boolean array.


**Output** : `{true, false, false}`

## Recommendation

- Learn how to add and configure a [Data Mapping task](https://docs.cloud.google.com/application-integration/docs/configure-data-mapping-task.md.txt)