docs: function convertToJsonOnValidate(any) {
    var validate = any._validate;
    any._validate = function () {
      var result = validate.apply(this, arguments);
      if (!result.error && result.value) {
        result.value = JSON.stringify(result.value);
      }
      return result;
    };
    return any;
  }