We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java 转json 需要支持可以设置过滤某些有业务逻辑的属性 , 比如
03:52 DEBUG (Test1.java:29) [testNew1()] { "orderInfoList": [ { "chargeDetials": "24121", "discountDetials": {"discountInfo": { "discountAmt": "0", "discountCode": "COD" }} }, { "chargeDetials": "6666", "discountDetials": {"discountInfo": { "discountAmt": "8888", "discountCode": "alipay" }} } ], "ssd": null }
如果 discountDetials 里面的discountInfo 对象 discountAmt 属性是 "0" , 那么整个discountDetials 不输出
期望结果:
03:52 DEBUG (Test1.java:29) [testNew1()] { "orderInfoList": [ { "chargeDetials": "24121" }, { "chargeDetials": "6666", "discountDetials": {"discountInfo": { "discountAmt": "8888", "discountCode": "alipay" }} } ], "ssd": null }
The text was updated successfully, but these errors were encountered:
c1246a8
venusdrogon
No branches or pull requests
java 转json 需要支持可以设置过滤某些有业务逻辑的属性 , 比如
如果 discountDetials 里面的discountInfo 对象 discountAmt 属性是 "0" , 那么整个discountDetials 不输出
期望结果:
The text was updated successfully, but these errors were encountered: