title: How can i search in a JSON file for a value with a string as key in Node.js
body: <p>I try to make a discord bot and i want to implement a voice call soundboard wich can play mp3 files from users. To store these files i need some information about the file. When its finished you should be able to play the files with a command like <code>!sound play test</code>. My question is: How can i search my JSON file after the Value key?</p>
  <pre><code>{       
      &quot;test&quot;:{
          &quot;owner&quot;:&quot;some-id&quot;,
          &quot;file&quot;:&quot;mathemannsong.mp3&quot;,
          &quot;stats&quot;:{
              &quot;played&quot;: 0
          }
      },
      &quot;test2&quot;:{
          &quot;owner&quot;:&quot;some-id&quot;,
          &quot;file&quot;:&quot;random.mp3&quot;,
          &quot;stats&quot;:{
              &quot;played&quot;: 5
          }
      }
  }
  </code></pre>
  <p>This is my JSON file.</p>
  <p>I want to search it like this:</p>
  <pre><code>cosnt file = require(&quot;.file.json&quot;)
  const name = &quot;test&quot;;
  const owner = file.name.owner
  </code></pre>
  <p>I know why this dosn`t work.</p>