title: Unable to Deserialize DateTime, Guid, or Enum with System.Text.Json
body: <p>I filed a bug, but this seems like such a basic fundamental scenario that I must be missing something:
  Bug: <a href="https://github.com/dotnet/runtime/issues/48202" rel="nofollow noreferrer">https://github.com/dotnet/runtime/issues/48202</a></p>
  <p>I am unable to Deserialize DateTime, Guid, or Enum with System.Text.Json.</p>
  <p>Here is a very minimal XUnit test to repro how I would expect it to work, but is failing.</p>
  <pre><code>using System;
  using System.Text.Json;
  using Xunit;
  
  namespace Example.Tests
  {
      public class UnitTest1
      {
          [Fact]
          public void GuidsAndDateTimesNotSerialized()
          {
              var post = new Post {
                  AuthorId = Guid.NewGuid(),
                  Created = DateTime.UtcNow,
                  Title = &quot;test title&quot;,
                  Path = &quot;test-title&quot;,
                  PostStatus = PostStatus.Published,
                  Description = &quot;this is a test&quot;,
  
              };
              var json = JsonSerializer.Serialize(post);
              var result = JsonSerializer.Deserialize&lt;Post&gt;(json);
  
              Assert.Equal(post.Created, result.Created);
              Assert.Equal(post.AuthorId, result.AuthorId);
              Assert.Equal(post.PostStatus, result.PostStatus);
          }
      }
  
      public class Post
      {
          public Guid AuthorId { get; internal set; }
          public string Title { get; set; }
          public string Path { get; set; }
          public string Description { get; set; }
          public PostStatus PostStatus { get; internal set; }
          public DateTime Created { get; internal set; }
      }
  
      public enum PostStatus
      {
          Draft,
          Published
      }
  }
  </code></pre>
  <p>Is there something with using System.Text.Json that I am missing?</p>