Search code examples
stringhttp-postmulex-www-form-urlencoded

Convert string payload of type 'application/x-www-form-urlencoded' to map of type 'application/java' in mule 3


I have a requirement to read application/x-www-form-urlencoded data as a request body from POST API, The content is in String format like below. How can we convert it to java.util.Map in mule3?

enter image description here

Please suggest!!


Solution

  • I couldn't find any direct transformer support from mule3 for this, Found a workaround that is split that by ',' and read the values individually, It solved my problem.