title: How do I save list box items into JSON file?
body: <p>I have one list box which is filled dynamically.
  I have created one sample.json file inside project folder and want to save all listbox items saved into samepl.json in simple <code>string[]</code>
  format.</p>
  
  <pre><code>private void btnSave_Click(object sender, EventArgs e)
  {
      foreach (var item in listBox1.Items)
      {
           json = JsonConvert.SerializeObject(item.ToString());
      }
  }
  
  sample.json
  []
  </code></pre>