简体   繁体   中英

WSO2 API Gateway convert JSON to JSON

I need to configure JSON to JSON transformations with API Manager 2.0 very efficiently. By default, WSO2 API Manager makes transformations JSON-> XML-> and after processing -> XML->JSON I'd like to know how can I do so directly in JSON to reduce latencies. Thank you for your help!!

By default, APIM uses PassThrough transport which does not build your message unless it needs to access your message body. So, your json won't be converted to XML in that case.

For example, if you have configured custom mediation and have a content-aware mediator like <log level="full"/> , APIM has to build (ie convert to XML) your message body so that it can log the entire message.

If you don't try to access the message body like that, json will be sent to backend as it is.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM