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

Getting error when Deserialize #330

Open
vishal43030 opened this issue May 1, 2019 · 1 comment
Open

Getting error when Deserialize #330

vishal43030 opened this issue May 1, 2019 · 1 comment

Comments

@vishal43030
Copy link

I want to deserialize a response which includes Json-Data with deserialize to my defined object.. But i always get the following error. Am i doing something wrong or do i need to adjust the parameters?
Message: Expected: {, null

var jsonText = result.Content.ReadAsStringAsync().Result;
elasticResponseArgs.ResponseText = jsonText;
Options options = new Options(false, false, false, DateTimeFormat.ISO8601, true, UnspecifiedDateTimeKindBehavior.IsUTC);
elasticResponseArgs.Json = JSON.Deserialize(jsonText, options);

Thanks,

@zmagickap
Copy link

I'm also having this error. I'll need to come back with details, but generically, can anyone explain the circumstances when the deserializer would "expect" a 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