title: Deserializing NodaTime Instant from System.Text.Json
body: <p>I'm using Noda Time in an ASP.NET Core project and a model that contains two <code>Instant</code> properties.</p>
  <pre class="lang-cs prettyprint-override"><code>public class Template
  {
      //... redacted bits
  
      public Instant CreateDt { get; set; }
      public Instant LastmodDt { get; set; }
  }
  </code></pre>
  <p>The info in the database is as I expect &quot;out of box.&quot; However <em>getting back</em> the values via API returns empty object properties like this:</p>
  <pre class="lang-json prettyprint-override"><code>{
      //... redacted bits
  
      &quot;createDt&quot;: {},
      &quot;lastmodDt&quot;: {}
  }
  </code></pre>
  <p>How do I get back the same date I put in, or at least some data I can massage into it?</p>
  <p>FWIW I'm using ASP.NET Core 3.1, with the default System.Text.Json (not JSON.NET).</p>
  <p><strong>Edit</strong>: Removed spurious notes about PostgreSQL which turned out to be irrelevant to the question.</p>