Blankman
Blankman

Reputation: 267020

Does dotnet core have a built in JSON serializer/deserializer for console applications?

I'm creating a console application in dotnetcore. Do I have to get a specific package to support JSON serialization etc?

Upvotes: 0

Views: 436

Answers (2)

jdphenix
jdphenix

Reputation: 15425

If you're in 3.0+, the System.Text.Json namespace is available for your use.

If you're targeting one of these,

  • NET Standard 2.0 and later versions
  • .NET Framework 4.7.2 and later versions
  • .NET Core 2.0, 2.1, and 2.2

You can install the System.Text.Json package.

Upvotes: 3

David W
David W

Reputation: 10184

The System.Text.Json and System.Text.Json.Serialization namespaces has support for JSON serialization/deserialization.

Upvotes: 3

Related Questions