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
Can't deserialize object just serialized. #2911
Comments
Not reproducible. Please make sure that the example code you include in your report actually demonstrates the issue you are reporting. This includes verifying that the provided example code exhibits the issue when being run in dotnetfiddle or in a standalone console app (so as to make sure that everyone else can reproduce the problem with the example code given). Also make sure that the issue occurs when using the most recent version of Newtonsoft.Json. Make sure the Newtonsoft.Json library you are using is not some 3rd-party modification but the original Newtonsoft.Json build as provided by the author of the library. (This is relevant especially for (old-ish) Unity projects, which sometimes rely on modified versions of Newtonsoft.Json. If this would be the case for your project, then the issue has to be reported not here but reported to the maintainers of that 3rd-party modification of Newtonsoft.Json instead.) If the problem still occurs with the most recent version of Newtonsoft.Json and with the code in your report, then provide details about build setting and the environment in which you are running the code, such as but not limited to:
|
Может readonly не позволяет? |
At some moment in my code, I had to do a variation of this:
Then I get the following exception:
Which in turn had the following source:
Debugging the serialized string it had the value
"Foo"
instead of the expected:StackTrace for the first Exception:
StackTrace for the InnerException:
The text was updated successfully, but these errors were encountered: