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
在同一个对象中,double类型的数据可能需要输出不同的格式。比如,金额显示两位小数,价格显示三位小数。 JSONField注解的format只支持日期对象,不知道这样设计是基于什么样的考虑。
可以增加double类型格式注解支持么? @JSONFiled(format="0.00") private Double price; 类似这样的。
The text was updated successfully, but these errors were encountered:
JSONSerializer public final void writeWithFormat(Object object, String format) { }
这个方法被标记为final了。
Sorry, something went wrong.
已经支持,预计在春节前会发布新版本
No branches or pull requests
在同一个对象中,double类型的数据可能需要输出不同的格式。比如,金额显示两位小数,价格显示三位小数。
JSONField注解的format只支持日期对象,不知道这样设计是基于什么样的考虑。
可以增加double类型格式注解支持么?
@JSONFiled(format="0.00")
private Double price;
类似这样的。
The text was updated successfully, but these errors were encountered: