How to convert ManagedCursorStreamProvider to JSOn object in mule 4

后端 未结 1 1400
没有蜡笔的小新
没有蜡笔的小新 2021-01-21 02:51

How to convert ManagedCursorStreamProvider to Json object in mule. I have written a java method which takes the Json Object as input

Request Payload:
{ a: \"one         


        
相关标签:
1条回答
  • 2021-01-21 03:03

    Mule doesn't know how to convert to a GSON JsonObject. You can use DataWeave to transform it into a Java map. Alternatively, you can change the argument of the Java method to String and Mule will transparently convert the stream to a String. Be sure to use the latest version of the Java module.

    If you want to convert to a custom type of object you will need to implement it yourself in Java.

    0 讨论(0)
提交回复
热议问题