code: function (args, throwsErrors) {
                  this._options.addDefaults = true;
                  // publicly allowing the user to give the bean definition without it
                  // being loaded is not supported:
                  args.beanDef = null;
                  return this.__logAllErrors(this._processJsonValidation(args), throwsErrors);
              }
docs: Check that the json structure complies with the given bean and add default values. All errors are logged.
  @param {Object} args
  
  <pre>
  {
  json: json to check.
  beanName: bean to use
  }
  </pre>
  
  @param {Boolean} throwsErrors (default false)
  @return {Boolean} true if the json structure complies with the given bean, false otherwise