title: How to get value in JSON?
body: <p>I'm trying to make a Discord bot and will apply commands from JSON file (for ex. if command is &quot;abc&quot;, find &quot;abc&quot; in commands' array (list) and reply with abc's data). Here an element from my JSON file (file is long, because of this, haven't put full file):</p>
  <pre><code>[
      {&quot;howareyou&quot;: {
          &quot;Reply&quot;: &quot;**Uh, oh... A few minutes ago lost my diamond banana from Middle Ages. But expect this, I'm OK.&quot;,
          &quot;NoArguments&quot;: true
      }}
  ]
  </code></pre>
  <p>But the problem is: I get error &quot;Cannot read property &quot;Reply&quot; of undefined&quot; at this JS code:</p>
  <pre><code>const CMDFile = JSON.parse (FS.readFileSync ('./Commands.json', 'utf8', Error_ =&gt; { if (Error_) throw Error_ }))
  
  if (Message.content.startsWith ('\\')) { // My prefix is '\'
      if (Used_CMD == '' /* Used CMD is msg content without prefix */ || (Message.mentions.users.first () &amp;&amp; Message.mentions.users.first ().id == '123456789012345678')) {
              Cevapla ('Yes, I'm! For more, just use command `\\help`.')
      } else {
          const CMD = CMDFile [Used_CMD],
                Reply = CMD.Reply, NoArg = CMD.NoArguments
  </code></pre>
  <p>My code runs correctly when I use '\' command btw, but when I type '\howareyou', it errors <code>TypeError: Cannot read property 'Reply' of undefined</code>. How can I fix this? Thanks.</p>