Read map from json data

Hi,
I am trying to read json element which is like,

{
  element : {
      "key1" : "value1" ,
      "key2" : "value2" ,
      "key3" : "value3" 
  }
}

and map it to an xml element.

<head>
   <element>
      <entry>
           <key>key1</key>
           <value>value1</value>
      </entry>
      <entry>
           <key>key2</key>
           <value>value2</value>
      </entry>
      <entry>
           <key>key3</key>
           <value>value3</value>
      </entry>
   </element>
</head>

Please suggest how can i do this.
Thank you.

Hi,

If you just want to translate Json to XML, you may do it via CTL function json2xml - see this doc..

For parsing JSON, JSONExtract or JSONReader components may be used.