title: Serialize JSON to JSON Array (Nested JSON) for POST Request C#
body: <h2>This is what I'm trying to achieve. I'm trying to serialize my model into a JSON for post request to insert records</h2>
  <pre><code>{
      &quot;Data&quot;: [
          {
              &quot;employee_num&quot;: &quot;7812345&quot;,
              &quot;code&quot;: &quot;333&quot;,
              &quot;startdate&quot;: &quot;2020-10-03&quot;
          },
          {
              &quot;employee_num&quot;: &quot;2345789&quot;,
              &quot;code&quot;: &quot;444&quot;,
              &quot;startdate&quot;: &quot;2020-10-03&quot;
          }
      ]
  }
  </code></pre>
  <p>I'm stuck with this</p>
  <pre><code>{
       &quot;employee_num&quot;: &quot;7812345&quot;,
       &quot;code&quot;: &quot;333&quot;,
       &quot;startdate&quot;: &quot;2020-10-03&quot;
  },
  {
       &quot;employee_num&quot;: &quot;2345789&quot;,
       &quot;code&quot;: &quot;444&quot;,
       &quot;startdate&quot;: &quot;2020-10-03&quot;
  }
  </code></pre>
  <p>Here is my code</p>
  <pre><code>var options = new JsonSerializerOptions
  {
  WriteIndented = false
  };
  var jsonString = JsonSerializer.Serialize(Model, options);
  </code></pre>
  <p>Newbie here</p>