I'm on wso2 mi trying to log json response objeect returned from target endpoint the enpoint return json but when i tried to test wos2 exposed api i got:
[2025-04-17 17:26:04,349] ERROR {JsonStreamBuilder} - Error occurred while processing document for application/json
My api
`
<call>
<endpoint key="todos-server"/>
</call>
<log level="custom">
<property name="ContentType" expression="get-property('axis2', 'ContentType')"/>
<property name="RawResponse" expression="$body"/>
</log>
<property name="CHARACTER_SET_ENCODING" value="UTF-8" scope="axis2" type="STRING"/>
<property name="messageType" value="application/json" scope="axis2" type="STRING"/>
<log level="custom">
<property name="JsonResponse" expression="json-eval($)"/>
</log>
<respond/>
</inSequence>
`
the problem is that if i test api from postman or navigator directly everything work fine`