String Map to Object / JSON - Mule DataWeave
<p>I have a <strong>string</strong> like this (which looks like a map)</p>

<p>{key1=value1;key2=value2;key3=value3;...keyn=valuen;}</p>

<p>which I want to either convert to a java object or as a JSON payload like this:</p>

<p>{"key1" : "value1","key2" : "value2","key3" : "value3",..."keyn" : "valuen"}</p>

<p>Is there a mule way to do it ? I am trying to avoid writing a custom java class for this problem. Something which data weave can help?</p>