[[["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\u003eSET_PROPERTY\u003c/code\u003e function adds or updates properties within a JSON object.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts the property name and value as input parameters and returns the modified JSON object.\u003c/p\u003e\n"],["\u003cp\u003eThe function supports JSON as the sole data type.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSET_PROPERTY\u003c/code\u003e can add simple properties, nested properties, or update the values of existing properties within a JSON object.\u003c/p\u003e\n"]]],[],null,["# SET_PROPERTY function\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nSET_PROPERTY function\n=====================\n\n`SET_PROPERTY` function\n-----------------------\n\nSupported data type\n-------------------\n\n\nThe `SET_PROPERTY` function supports the following data type:\n\n- JSON\n\nExample: Add a property to a JSON object\n----------------------------------------\n\n\n**Sample data** : `$var1$ = {\"productId\":23}`\n\n\n**Usage** : `$var1$.SET_PROPERTY(\"radio\",\"productName\")`\nAdd a property to var1.\n\n\n**Output** : `{\"productId\":23,\"productName\":\"radio\"}`.\n\nExample: Add a nested property to a JSON object\n-----------------------------------------------\n\n\n**Sample data** : `$var1$ = {\"productId\":23}`\n\n\n**Usage** : `$var1$.SET_PROPERTY({\"productName\",\"radio\"},\"productDetails\")`\nAdd a nested property to var1.\n\n\n**Output** : `{\"productId\":23,\"productDetails\":{\"productName\":\"radio\"}}`.\n\nExample: Update a property in a JSON object\n-------------------------------------------\n\n\n**Sample data** : `$var1$ = {\"productId\":23}`\n\n\n**Usage** : `$var1$.SET_PROPERTY(\"34\",\"productId\")`\nUpdate the `productId` property in var1.\n\n\n**Output** : `{\"productId\":34}`.\n\nRecommendation\n--------------\n\n- Learn how to add and configure a [Data Mapping task](/application-integration/docs/configure-data-mapping-task)"]]