title: What's the best way to parse this JSON in dotnet core?
body: <p>I have a json file similar to this:</p>
  <pre><code>[
    {
      &quot;records&quot;: [
        {
          &quot;originalEventTimestamp&quot;: &quot;2020-10-21T17:18:02.5353507Z&quot;,
          &quot;time&quot;: &quot;2020-10-21T17:18:02.5359120Z&quot;,
          &quot;properties&quot;: {
            &quot;audit_schema_version&quot;: 1,
            &quot;event_id&quot;: &quot;059B9CA8-29EA-4CC4-AC72-7FAD567C09AD&quot;
          }
        },
        {
          &quot;originalEventTimestamp&quot;: &quot;2020-10-21T17:18:18.5820720Z&quot;,
          &quot;time&quot;: &quot;2020-10-21T17:18:18.5828543Z&quot;,
          &quot;properties&quot;: {
            &quot;audit_schema_version&quot;: 1,
            &quot;event_id&quot;: &quot;00B6B0F4-8CD0-49E2-BE7F-1392BC0C6E05&quot;
          }
        }
      ],
      &quot;EventProcessedUtcTime&quot;: &quot;2020-10-21T17:23:12.7628776Z&quot;,
      &quot;PartitionId&quot;: 1,
      &quot;EventEnqueuedUtcTime&quot;: &quot;2020-10-21T17:20:35.8420000Z&quot;
    }
  ]
  </code></pre>
  <p>I've been following a JSON tutorial that led me down this path:</p>
  <pre><code>JsonDocument document = JsonDocument.Parse(Encoding.UTF8.GetString(eventArgs.Data.Body.ToArray()));
  JsonElement root = document.RootElement;
  JsonElement recordsElement = root.GetProperty(&quot;records&quot;);
  
  foreach (JsonElement record in recordsElement.EnumerateArray())
  {
      Console.WriteLine(&quot;\tHello World - number 2a:{0}&quot;, record.ToString());
                   
      if (record.TryGetProperty(&quot;audit_schema_version&quot;, out JsonElement audit_schema_version))
      {
          Console.WriteLine(&quot;\tHello World - number 3:{0}&quot;, audit_schema_version.ToString());
      }
      else
      {
          Console.WriteLine(&quot;\tHello World - number 4, no audit_schema_version&quot;);
      }
  }
  </code></pre>
  <p>I'm using System.Text.Json and System.Text.Json.Serialization. How can I parse this and get to the audit_schema_version value?</p>