-
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
deserialize does not work expected when @type is not the first element. #18
Comments
this is designed feature, not a bug. why you require "@type" is not the first element? |
We developed a web app in which depends on your fastjson. But the client program guys use c++. we said @type is needed with some value, so they append @type as the last element of json string. And as a result, the server did response fail. So we checked it and found that @type should be the first element. |
I have a class with two properties: firstName and lastName (will full getters and setters).
JSON.parse("{"firstName":"first","@type":"demo.JsonTest$JSONDemo","lastName":"last"}");
will ignore firstName left it null value.
Is this a bug or designed?
The text was updated successfully, but these errors were encountered: