0
以下の変換をしたい。私はデータ織りでエスケープ文字を追加しようとしています。ペイロードを単一の文字列にマージできますが、エスケープ文字は追加できません。エスケープ文字をノーデータ織り変換に追加する方法
入力
{
"request":{
"Id":"1111",
"channel":"ABC",
"useFilters":false
},
"need":{
"postcode":2222,
"Imp":"Mobile",
"additionalProducts":[
],
"isOwner":true,
"isMovingIn":true,
"movingDate":"2017-07-28",
"otherNeeds":[
"Food",
"Car"
]
},
"filter":{
"productType":[
],
"zone":[
],
"data":[
],
"speedTier":[
],
"recommendedPlans":true
}
}
出力
{
"needs": {
"key": "capture_value",
"value": "{\"request\":{\"Id\":\"1111\",\"channel\":\"ABC\",\"useFilters\":false},\"need\":{\"postcode\":2222,\"Imp\":\"Mobile\",\"additionalProducts\":[],\"isOwner\":true,\"isMovingIn\":true,\"movingDate\":\"2017-07-28\",\"otherNeeds\":[\"Food\",\"Car\"]},\"filter\":{\"productType\":[],\"zone\":[],\"data\":[],\"speedTier\":[],\"recommendedPlans\":true}}"
}
}
は、誰もが上記の変換を行う方法を提案してくださいことはできますか? TIA