title: Converting One Data Type Object to another Data Type Object in WSO2 Config Lang
body: <p>I am trying to convert one json payload to another, I have tried using <code>DataMapper</code> but the output payload does not match the input payload so I can't map both data.</p>
  
  <p>I tried with enrich mediator but I can't seem to find my way through.</p>
  
  <p>input json</p>
  
  <pre><code>{
      "requestID": "10001",
      "requestMode": "mode34",
      "channelCode": "34",
      "agentBusinessName": "34",
      "agentNumber": "34",
      "agentInstitutionCode": "001",
      "agentAccountNumber": "098788"
  }
  </code></pre>
  
  <p>output json</p>
  
  <pre><code>{
      "BalanceEnquiryRequest": {
  
          "channel": null,
          "type": "mode34",
          "customerId": "098788",
          "customerIdType": null,
          "submissionTime": null,
          "reqTranId": "10001",
          "passcode": null
      }
  }
  </code></pre>