},
    onValidate: function (json) {
      var errors = [];
      if(!isNaN(json.age) && json.age < 30) {
        errors.push({ path: ['age'], message: 'Member age must be 30 or higher' });
      }
      return errors;
    }
  };

  // create the editor
  var container = document.getElementById('jsoneditor');
  var editor = new JSONEditor(container, options, json);
</script>
</body>
</html>
