title: Dataweave in Mule - Change value Array of Objects
body: <p>I get a payload as input in the message transform component. It is an Array with Objcts:</p>
  
  <pre><code> [
        {
            "enterprise": "Samsung",
            "description": "This is the Samsung enterprise",
        },
        {
            "enterprise": "Apple",
            "description": "This is the Apple enterprise ",
        }
    ]
  </code></pre>
  
  <p>I have a variable that replaces the description and the output that I want is:</p>
  
  <pre><code>[
        {
            "enterprise": "Samsung",
            "description": "This is the var value",
        },
        {
            "enterprise": "Apple",
            "description": "This is the var value",
        }
    ]
  </code></pre>
  
  <p>I tried to use:</p>
  
  <pre><code> %dw 2.0
   output application/java
   ---
   payload map ((item, index) -&gt; {
  
       description: vars.descriptionValue
   })
  </code></pre>
  
  <p>But it returns:</p>
  
  <pre><code> [
        {
            "description": "This is the var value",
        },
        {
            "description": "This is the var value",
        }
    ]
  </code></pre>
  
  <p>Is possible to <strong>replace only the description value</strong> keeping the rest of the fields? <strong>Avoiding adding the other fields in the mapping</strong>.</p>