Using latest nightly build of .NET Core 3.0 and write:
string s = JsonSerializer.ToString((a: 1, b: 2));
Console.WriteLine(s);
You will get a string representing an empty object {}. I think the right behavior is to have { "Item1": 1, "Item2": 2 } and I expect it should also work for deserialization.
Using latest nightly build of .NET Core 3.0 and write:
You will get a string representing an empty object
{}. I think the right behavior is to have{ "Item1": 1, "Item2": 2 }and I expect it should also work for deserialization.