Skip to content

Conversation

@RehanSaeed
Copy link
Contributor

Moved to develop branch from #115

The JsonSerializerSettings is available in MVC via IOptions<T> that is very easy to configure via .AddMvcCore(...).AddJsonOptions(...). So perhaps we should use it.

The second part of this PR is to indent the JSON when running in development mode for better readability.

This PR also helps with graphql-dotnet/graphql-dotnet#662 in that MVC sets JsonSerializerSettings.DateFormatString to the correct ISO8601 value with the offset by default.

@RehanSaeed
Copy link
Contributor Author

cc @pekkah

@pekkah pekkah merged commit c69c6dc into graphql-dotnet:develop Jun 9, 2018
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

Successfully merging this pull request may close these issues.

2 participants