title: How to check if JSON file contains only empty array
body: <p>I need to check if my JSON file contains data or only empty array. I am doing it in this way:</p>
  
  <pre><code>with open('example.json') as f:
      data = json.load(f)
      if not data:
          do_my_stuff()
  </code></pre>
  
  <p>But my JSON files can be really huge and I do not want to load them all.<br>
  Can I check if file contains nothing but empty array in other way? Check if my file's weight is 2 bytes (isn't it lame?)?</p>