-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
fastjson1.1.46.sec01和1.2.41版本在key为integer等数字类型时不兼容 #1633
Labels
Milestone
Comments
有点奇怪,按理key必须是string |
wenshao
added a commit
that referenced
this issue
Dec 11, 2017
wenshao
added a commit
that referenced
this issue
Dec 11, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1.1.46.sec01,key为数字类型时会作toString处理。所以 parse出来的对象要用字符串类型为key才能获取。但在1.2.41版本,key还是会保持数字类型,所以parse出来的对象要用Integer类型才能取得。
下面是DefaultJSONParser.java的源码贴图:
下面是测试用例:
`public class FastjsonTest {
}`
The text was updated successfully, but these errors were encountered: