xamarin.android - How to remove angle brackets in my esb while using mongodb -


how change angle brackets flower brackets in esb while using mongodb as(db)

i getting below response:

<responsejson><body>{ "_id" : { "$oid" : "51cad951949c798d7d84de49"} , "empid" : -1.0 , "empdetailid" : -1.0 , "slno" : 1.0 , "nameid" : -1.0 , "inputvalue" : 1.0 , "inputtext" : "none" , "finalvalue" : 1.0}</body><status>200</status><total>5.0</total></responsejson> 

i need response below:

{"responsejson":{"body":{ "_id" : { "$oid" : "51cad951949c798d7d84de49"} , "empid" : -1.0 , "empdetailid" : -1.0 , "slno" : 1.0 , "nameid" : -1.0 , "inputvalue" : 1.0 , "inputtext" : "none" , "finalvalue" : 1.0},"status":"200","total":"1.0"}} 

badly need solution in regard.

use script mediator write js perform conversion. not simple < { conversion, per request part of request[1] in xml format needs converted similar json.

[1]<status>200</status> -> "status":"200"

refer following link more information on script mediator

http://docs.wso2.org/wiki/display/esb450/sample+350%3a+introduction+to+the+script+mediator+using+javascript


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -