-1

We want to use Json.Net instead System.Text.Json in our project, mainly because we must use the TypeNameHandling function.

The app has the following:

  • It's a console app.
  • It uses Dependency Injection.

Question: how can we tell the runtime to use Json.Net in serialization/deserialization instead of System.Text.Json?

Thank you.

Attilio Gelosa
  • 555
  • 1
  • 8
  • 23

1 Answers1

0

You have to insert it in your project from Nuget Package manager. There is no obstacle to install in a Console application. For dependency injection you can follow directions in this link.

Halil Sahin
  • 568
  • 1
  • 6
  • 25