title: Dataweave - Replace value of a field in an object
body: <p>I have a <code>Java Object</code> as <strong>input</strong> payload:</p>
  
  <pre><code>{
  "name"="Michael",
  "surname"="Alpha",
  "mail"="demo@gmail.com",
  "gender"="Male"
  }
  </code></pre>
  
  <p>I want change the gender value <strong>keeping the rest of the message</strong>:</p>
  
  <pre><code>%dw 2.0
  output application/java
  ---
  gender: if(payload.gender == "Male") "" else payload.gender
  </code></pre>
  
  <p>But it return only the gender field. 
  <strong>How can I solve that?</strong></p>