6

what is the difference between these two libraries?

https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson/ vs https://www.nuget.org/packages/Newtonsoft.Json/

001
  • 62,807
  • 94
  • 230
  • 350
  • See: [Where did IMvcBuilder AddJsonOptions go in .Net Core 3.0?](https://stackoverflow.com/a/55666898/3744182): *In order to reconfigure your ASP.NET Core 3.0 project with Json.NET, you will need to add a NuGet reference to `Microsoft.AspNetCore.Mvc.NewtonsoftJson`, which is the package that includes all the necessary bits.* – dbc Jan 12 '20 at 16:46

2 Answers2

6

This is an extension to Newtonsoft JSON.

See the nuget dependeny list here json dep

It appears to connect the Mvc infrastructure of AspNetCore to newtonsofts JSON and extending it by various features.

Samuel
  • 6,126
  • 35
  • 70
4

As @Samuel, said it is just an extension of Newtonsoft JSON. If you check its source repository you will find classes from Microsoft.AspNetCore.Mvc.NewtonsoftJson project using Newtonsoft.Json.

Here are the classes from Microsoft.AspNetCore.Mvc.NewtonsoftJson source:

enter image description here

If you want to dig into source code then,

GitHub repository Link: aspnetcore/src/Mvc/Mvc.NewtonsoftJson/src/

Prasad Telkikar
  • 15,207
  • 5
  • 21
  • 44