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 che