Add flowVars (Map) to a JSON map using Dataweave Transformation
<p>I am trying to add a Java Map object to a JSON list item</p>

<p>Java Map</p>

<pre><code>{PARAMROWKEYVALUE3=PARAMROWVALUEVAL3, PARAMROWKEYVALUE4=PARAMROWVALUEVAL4}
</code></pre>

<p>to OBJECT2 map of JSON below</p>

<pre><code>{
"root": {
    "OBJECT1": {
        "PARAM1": "PARAM1VALUE",
        "PARAM2": "PARAM2VALUE"
    },
    "OBJECT2": [{
        "KEY": "PARAMROWKEYVALUE1",
        "VALUE": "PARAMROWVALUEVAL1"
    }, {
        "KEY": "PARAMROWKEYVALUE2",
        "VALUE": "PARAMROWVALUEVAL2"
    }],
    "OBJECT3": {
        "PARAM3": "PARAM3VALUE",
        "PARAM4": "PARAM4VALUE"
    }
}
}
</code></pre>

<p>Please let me know how can i achieve this, being the Map as flow variable.</p>

<p>Thanks in advance.</p>