title: Remove square brackets from list C#
body: <p>This is my code.</p>
  <pre><code>public static List&lt;MyList&gt; GetConfigurationJson()
  {
       List&lt;MyList&gt; Informations = new List&lt;MyList&gt;();
  
       MyList CustomerLog = new MyList
          {
              ChannelName = &quot;HR&quot;,
              SubscriptionKey = &quot;001&quot;,
                          Tenant = new Tenant()
                          {
                              CustomerId = &quot;2001&quot;,
                              TenantId = &quot;2551&quot;,
                              TenantName = &quot;Hello&quot;
                          }
          };
  
      Informations.Add(CustomerLog);
  
      return Informations;
  }
  </code></pre>
  <p>My output is like this.</p>
  <pre><code>[
    {
      &quot;channelName&quot;: &quot;HR&quot;,
      &quot;subscriptionKey&quot;: &quot;001&quot;,
      &quot;tenant&quot;: {
        &quot;customerId&quot;: &quot;dhh-e98391962001&quot;,
        &quot;tenantId&quot;: &quot;391962551&quot;,
        &quot;tenantName&quot;: &quot;dffg.com&quot;
      }
    }
  ]
  </code></pre>
  <p>I want to remove this square brackets from here. I tried to convert this to Json. But I need output as below format for swagger.</p>
  <p><a href="https://i.stack.imgur.com/o0IwL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o0IwL.jpg" alt="output" /></a></p>