code: function parseQuery() {
    let query = {};
  
    try { query = JSON.parse(queryBox.value); }
    catch(error) {
      queryError.textContent = 'Query must be valid JSON';
      hide(queryButton);
      hide(queryResults);
      show(queryError);
      return null;
    } 
  
    hide(queryError);
    show(queryButton);
    return query;
  }
docs: Parse the query as typed in the box and confirm it is valid JSON