Json字符串:{"code":"0000","success":true,"results":{"code":"0000","userId":364,"openid":"null","shopId":null,"brandId":66,"roleId":1,"entityName":null,"menuList":[{"id":258,"name":"xxx","pid":255,"type":2},{"id":259,"name":"xxx","pid":255,"type":2}],"loginName":"xxx"}}
需求:shopId,id 这两个属性值进行加密
有什么好的办法,正则替换什么的。
因为字符串内容是未知的,不能装换成JSON对象操作
已经解决了