|
200精币
{"api_name":"qbase_commapi","data":{"cli_req_id":"1721030483654_0.9240306780587204","qbase_api_name":"tcbapi_slowcallfunction_v2","qbase_meta":{"filter_user_info":false,"sdk_version":"wx-miniprogram-sdk/3.3.5 (1711077136000 platform/windows})","session_id":"1721030096857"},"qbase_options":{"env":"dev-5g1hj5ync9d11aa0","rand":"0.3032610614942571"},"qbase_req":"{\"function_name\":\"enc\",\"data\":\"{\\\"timestamp\\\":1721030483,\\\"nonce\\\":\\\"020a0b69-340c-4be3-b864-b9b98a7b1412\\\",\\\"ip\\\":\\\"14.124.75.67\\\",\\\"data\\\":{\\\"orderId\\\":\\\"1186230830566537\\\",\\\"orderChnl\\\":\\\"22\\\",\\\"eventNo\\\":\\\"\\\",\\\"eventType\\\":\\\"\\\",\\\"mobile\\\":\\\"AGNFNGlMQsPbvPUU/sHDCFvlq6PNG0BEl6VRqADf2hYfSyxIwUT2IAsJXb5SFhwn9y5NM/lscMTuZEu5oEo3JA==\\\",\\\"mbrNm\\\":\\\"鍌ㄥ€煎崱(绾夸笂)\\\",\\\"mbrCardNo\\\":\\\"ziBNNlzAngV2dR7Qa7BuC1xK2pdfCdVcOpdS6hsFHsvHAw7J+375QgKgKXNynJDY6ESMXE5kuLc+joQEesrkfQSO9VYnzXePKADlBULdzwg=\\\",\\\"mbrCardPrice\\\":22,\\\"mbrCardType\\\":\\\"OwTtC5z8n7hj+noayeMMOmTTNCyX8FRVfOSvvrUIaYQoN13mmHrBUJasqwa0qZ0nEG7BOQtIDxVo++HIgZ96kA==\\\",\\\"mbrCardPwd\\\":\\\"a3441935c3ce50e98db2f210f0f87658\\\",\\\"pointUseYn\\\":\\\"0\\\",\\\"payType\\\":\\\"4\\\",\\\"payNo\\\":\\\"oxcAU0dTTMYzeQjVKTNV-bWCtYiY\\\",\\\"prods\\\":[],\\\"gftCardNm\\\":\\\"\\\",\\\"gftCertNo\\\":\\\"\\\",\\\"gftAuthNo\\\":\\\"\\\",\\\"gftCertPrice\\\":\\\"\\\",\\\"coupons\\\":[],\\\"vouchers\\\":[],\\\"formId\\\":\\\"\\\",\\\"pickMeals\\\":2,\\\"hasSendMessage\\\":2,\\\"newVersion\\\":true,\\\"dscMbrCrdNo\\\":\\\"ziBNNlzAngV2dR7Qa7BuC1xK2pdfCdVcOpdS6hsFHsvHAw7J+375QgKgKXNynJDY6ESMXE5kuLc+joQEesrkfQSO9VYnzXePKADlBULdzwg=\\\",\\\"goodsVouchers\\\":[]}}\",\"action\":1,\"scene\":1,\"call_id\":\"1721030483654-0.3339996075937781\",\"cloudid_list\":[]}"},"operate_directly":false}
需要把这段json作为下面['json_data']的值,直接用json.置属性(”['json_data']“,)所得到的结果无法正确解析,
{
"appid": "wx24b962fec75764c3",
"json_data": "",
"S5": "1",
"S6": "0"
}
怎么样才能把这两个json合并成
{
"appid": "wx24b962fec75764c3",
"json_data": "{\"api_name\":\"qbase_commapi\",\"data\":{\"cli_req_id\":\"1721030483654_0.9240306780587204\",\"qbase_api_name\":\"tcbapi_slowcallfunction_v2\",\"qbase_meta\":{\"filter_user_info\":false,\"sdk_version\":\"wx-miniprogram-sdk/3.3.5 (1711077136000 platform/windows})\",\"session_id\":\"1721030096857\"},\"qbase_options\":{\"env\":\"dev-5g1hj5ync9d11aa0\",\"rand\":\"0.3032610614942571\"},\"qbase_req\":\"{\\\"function_name\\\":\\\"enc\\\",\\\"data\\\":\\\"{\\\\\\\"timestamp\\\\\\\":1721030483,\\\\\\\"nonce\\\\\\\":\\\\\\\"020a0b69-340c-4be3-b864-b9b98a7b1412\\\\\\\",\\\\\\\"ip\\\\\\\":\\\\\\\"14.124.75.67\\\\\\\",\\\\\\\"data\\\\\\\":{\\\\\\\"orderId\\\\\\\":\\\\\\\"1186230830566537\\\\\\\",\\\\\\\"orderChnl\\\\\\\":\\\\\\\"22\\\\\\\",\\\\\\\"eventNo\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"eventType\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"mobile\\\\\\\":\\\\\\\"AGNFNGlMQsPbvPUU/sHDCFvlq6PNG0BEl6VRqADf2hYfSyxIwUT2IAsJXb5SFhwn9y5NM/lscMTuZEu5oEo3JA==\\\\\\\",\\\\\\\"mbrNm\\\\\\\":\\\\\\\"鍌ㄥ€煎崱(绾夸笂)\\\\\\\",\\\\\\\"mbrCardNo\\\\\\\":\\\\\\\"ziBNNlzAngV2dR7Qa7BuC1xK2pdfCdVcOpdS6hsFHsvHAw7J+375QgKgKXNynJDY6ESMXE5kuLc+joQEesrkfQSO9VYnzXePKADlBULdzwg=\\\\\\\",\\\\\\\"mbrCardPrice\\\\\\\":22,\\\\\\\"mbrCardType\\\\\\\":\\\\\\\"OwTtC5z8n7hj+noayeMMOmTTNCyX8FRVfOSvvrUIaYQoN13mmHrBUJasqwa0qZ0nEG7BOQtIDxVo++HIgZ96kA==\\\\\\\",\\\\\\\"mbrCardPwd\\\\\\\":\\\\\\\"a3441935c3ce50e98db2f210f0f87658\\\\\\\",\\\\\\\"pointUseYn\\\\\\\":\\\\\\\"0\\\\\\\",\\\\\\\"payType\\\\\\\":\\\\\\\"4\\\\\\\",\\\\\\\"payNo\\\\\\\":\\\\\\\"oxcAU0dTTMYzeQjVKTNV-bWCtYiY\\\\\\\",\\\\\\\"prods\\\\\\\":[],\\\\\\\"gftCardNm\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"gftCertNo\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"gftAuthNo\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"gftCertPrice\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"coupons\\\\\\\":[],\\\\\\\"vouchers\\\\\\\":[],\\\\\\\"formId\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"pickMeals\\\\\\\":2,\\\\\\\"hasSendMessage\\\\\\\":2,\\\\\\\"newVersion\\\\\\\":true,\\\\\\\"dscMbrCrdNo\\\\\\\":\\\\\\\"ziBNNlzAngV2dR7Qa7BuC1xK2pdfCdVcOpdS6hsFHsvHAw7J+375QgKgKXNynJDY6ESMXE5kuLc+joQEesrkfQSO9VYnzXePKADlBULdzwg=\\\\\\\",\\\\\\\"goodsVouchers\\\\\\\":[]}}\\\",\\\"action\\\":1,\\\"scene\\\":1,\\\"call_id\\\":\\\"1721030483654-0.3339996075937781\\\",\\\"cloudid_list\\\":[]}\"},\"operate_directly\":false}",
"S5": "1",
"S6": "0"
}
这样的json格式,求大神请教
|
最佳答案
查看完整内容
.版本 2
.支持库 e2ee
.支持库 spec
.子程序 子程序1
.局部变量 json1, 存取键值表
.局部变量 json2, 存取键值表
json1.从JSON载入 (#常量1, , , )
json2.从JSON载入 (#常量2, , , )
json1.置文本 (“//json_data”, json2.到JSON (假, , , , ))
调试输出 (json1.到JSON (假, , , , ))
e2ee支持库: https://bbs.125.la/forum.php?mod=viewthread&tid=14440063
...
|