我有一个 JSON 对象如下
{
"mandator":"GB0010001",
"debitAccount":"81884",
"creditAccount":"82918",
"trustedBeneficiary":"false",
"localCurrencyAmount":35,
"transactionReference":"omega7.1.1",
"debitAccountASPSP":"t24",
"currencyAmount":35,
"executionDate":"20180102",
"creditAccountASPSP":"t24",
"transactionType":"Contactless payment",
"trustedPSP":"false",
"jsonErrorResponse":{
"errorCount":0,
"errors":[
]
},
"currency":"USD",
"company":"GB0010001"
}
我需要删除"jsonErrorResponse":{"errorCount":0,"errors":[]},我用过JSONobject.remove("jsonErrorResponse").toString()
但它给了我输出{"errorCount":0,"errors":[]}而不是
{
"mandator":"GB0010001",
"debitAccount":"81884",
"creditAccount":"82918",
"trustedBeneficiary":"false",
"localCurrencyAmount":35,
"transactionReference":"omega7.1.1",
"debitAccountASPSP":"t24",
"currencyAmount":35,
"executionDate":"20180102",
"creditAccountASPSP":"t24",
"transactionType":"Contactless payment",
"trustedPSP":"false",
"currency":"USD",
"company":"GB0010001"
}
POPMUISE
沧海一幻觉
偶然的你
叮当猫咪
随时随地看视频慕课网APP
相关分类