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

[Feature request] Add DateParseHandling.None to RestRequest #47

Open
HiQ-wipa opened this issue Dec 5, 2022 · 0 comments
Open

[Feature request] Add DateParseHandling.None to RestRequest #47

HiQ-wipa opened this issue Dec 5, 2022 · 0 comments

Comments

@HiQ-wipa
Copy link

HiQ-wipa commented Dec 5, 2022

As discussed at JamesNK/Newtonsoft.Json#862, Newtonsoft.Json likes to reinterpret date strings, which often causes nasty surprises with Frends.Web.RestRequest.

I think the RestRequest task should have a new option, e.g. "Disable date parsing", which would disable this behaviour.

In practice, I think this option needs to be passed to TryParseRequestStringResultAsJToken, which would use JsonConvert.DeserializeObject with appropriate parsing options if this option is set.

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

1 participant