Returns the element at the specified index in a JSON array. In the array, the first value is available at index 0 and the last value is available at index n-1 where n is the size of the array.
GET_ELEMENT(value)
Index value of the element.
Value of the element.
Supported data type
The GET_ELEMENT function supports the following data type:
JSON
Example: Get the value of an element in a JSON array
[[["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-29 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGET_ELEMENT\u003c/code\u003e function retrieves an element from a JSON array using its index, starting from 0 for the first element.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGET_ELEMENT\u003c/code\u003e function is used with JSON data types, returning the value of the element at the specified index.\u003c/p\u003e\n"],["\u003cp\u003eTo retrieve the element at index \u003ccode\u003e2\u003c/code\u003e in a JSON array, you can use the following example \u003ccode\u003e$var1$.GET_ELEMENT(2)\u003c/code\u003e, which will return \u003ccode\u003ethird\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe supported connectors in the Application Integration are linked in the documentation.\u003c/p\u003e\n"]]],[],null,["# GET_ELEMENT function\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nGET_ELEMENT function\n====================\n\n`GET_ELEMENT` function\n----------------------\n\nSupported data type\n-------------------\n\n\nThe `GET_ELEMENT` function supports the following data type:\n\n- JSON\n\nExample: Get the value of an element in a JSON array\n----------------------------------------------------\n\n\n**Sample data** : `$var1$ = [\"first\", \"second\", \"third\", \"fourth\"]`\n\n\n**Usage** : `$var1$.GET_ELEMENT(2)`\nGet the element at index `2`.\n\n\n**Output** : `third`\n\nRecommendation\n--------------\n\n- Learn how to add and configure a [Data Mapping task](/application-integration/docs/configure-data-mapping-task)"]]