Skip to content
New issue

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

Json.fromJson 问题和建议 #785

Closed
Jastxx opened this issue Jan 20, 2015 · 3 comments
Closed

Json.fromJson 问题和建议 #785

Jastxx opened this issue Jan 20, 2015 · 3 comments
Milestone

Comments

@Jastxx
Copy link

Jastxx commented Jan 20, 2015

当对象中有field 是map并且key为整型时,被toJson之后会变成key为String的数字存储,这个是没有问题的,但当重新fromJson之后,map就变成了key为String类型的集合,必须每次对get set重写,建议这个可以根据field的类型判断加入自动将数字str变为整型。

还有希望在JsonFormat中加一个无换行,不忽略null值的方法,这样可以凑齐4种常用方法

@wendal
Copy link
Member

wendal commented Feb 10, 2015

但,名字叫啥呢?

@wendal wendal added this to the 1.b.52 milestone Feb 10, 2015
@Jastxx
Copy link
Author

Jastxx commented Feb 10, 2015

tidy 随便google的... 主要突出简洁... 而紧凑是无null

@wendal wendal closed this as completed in 5ffa67a Feb 10, 2015
@wendal
Copy link
Member

wendal commented Feb 10, 2015

紧凑但有null吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants