title: How to read a value from a JSON file?
body: <p>I've never written a line of Lua before. How can I read a value from a JSON file?</p>
  
  <p>The JSON looks like this:</p>
  
  <pre><code>{"debug":false,"server":"dev3"}
  </code></pre>
  
  <p>I need to access the "server" value from a Lua script.</p>
  
  <p>In PHP I'd write</p>
  
  <pre><code>$server = json_decode(file_get_contents('config.json'), true)['server']
  </code></pre>
  
  <p>What's the equivalent Lua?</p>