title: Check for any Syntax error in ACE web editor
body: <p>I want to check if the code written in the ACE editor has any syntax error or not. I want to do this for doing a basic check for JSON that i want the users to edit. so that they don't save any bad JSON.</p>
  
  <p>What's the best way to do this.</p>