title: removing a json array object item if it matches a string
body: <p>In my index file, I am accessing this json using fs. I am trying to remove one of the array object items where a string input in my external index.js file matches the value of the &quot;ChannelName&quot; key.</p>
  <p>I have tried finding the index of the item where the channelname matches the string input but this didn't work(Converted to an array to try this).</p>
  <p>Has anyone any ideas? Is this even possible?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>{
      "DiscordServerId":"",
      "token":"",
      "twitch_clientID":"",
      "twitch_secret":"",
      "cron":"*/10 * * * *",
      "channelID":"",
      "roleID":"everyone",
      "channels":[
          {
              "ChannelName":"channel1",
              "DiscordServer":"",
              "twitch_stream_id":"",
              "discord_nessage_id":""},
          {
              "ChannelName":"channel2",
              "DiscordServer":"",
              "twitch_stream_id":"",
              "discord_nessage_id":""
          },
          {
              "ChannelName":"channel2",
              "DiscordServer":"",
              "twitch_stream_id":"",
              "discord_nessage_id":""
          }
      ],
      "authToken":""}</code></pre>
  </div>
  </div>
  </p>