[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eFLATTEN\u003c/code\u003e function recursively transforms a JSON array into a one-dimensional array.\u003c/p\u003e\n"],["\u003cp\u003eThis function takes no input parameters and returns a flattened JSON array.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFLATTEN\u003c/code\u003e function only supports JSON data type.\u003c/p\u003e\n"],["\u003cp\u003eExample usage of \u003ccode\u003e$var1$.FLATTEN()\u003c/code\u003e on \u003ccode\u003e[[1, 2], [3, 4]]\u003c/code\u003e will result in the output \u003ccode\u003e[1, 2, 3, 4]\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# FLATTEN function\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nFLATTEN function\n================\n\n`FLATTEN` function\n------------------\n\nSupported data type\n-------------------\n\n\nThe `FLATTEN` function supports the following data type:\n\n- JSON\n\nExample: Flatten a nested JSON array\n------------------------------------\n\n\n**Sample data** : `$var1$ = [[1, 2], [3, 4]]`\n\n\n**Usage** : `$var1$.FLATTEN()`\nFlatten var1.\n\n\n**Output** : `[1, 2, 3 ,4]`\n\nRecommendation\n--------------\n\n- Learn how to add and configure a [Data Mapping task](/application-integration/docs/configure-data-mapping-task)"]]