Skip to content

Conversation

martincostello
Copy link
Member

Register SystemTextJsonResultExecutor as part of MVC core services so that JsonResult works without Newtonsoft.Json being registered via AddNewtonsoftJson().

I wasn't sure on the best approach to use for the tests, so I forked the existing JsonResultTest functional test into two as JsonResultWithNewtonsoftJsonTest and JsonResultWithSystemTextJsonTest.

Addresses #11246.

Register SystemTextJsonResultExecutor as part of MVC core services so that JsonResult works without Newtonsoft.Json.
Addresses dotnet#11246.
@analogrelay analogrelay requested a review from rynowak June 15, 2019 17:11
@analogrelay analogrelay added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jun 15, 2019
@analogrelay analogrelay requested a review from pranavkm June 15, 2019 17:11
@davidfowl davidfowl requested review from pranavkm and removed request for pranavkm June 15, 2019 17:30
Copy link
Contributor

@pranavkm pranavkm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pranavkm pranavkm merged commit 87ea03d into dotnet:master Jun 17, 2019
@pranavkm pranavkm added this to the 3.0.0-preview7 milestone Jun 17, 2019
@martincostello martincostello deleted the Fix-11246 branch June 17, 2019 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants