title: How to check content validity in Ace.js
body: <p>I am using Ace.js for JSON and I need to check if content is valid every time I click a button. Ace.js has such validator on keyup. Therefore there should be a method to check content validity and return a Boolean.</p>