Here are some examples of how to use the JsonValidator library:
import com.gnof.core.JsonValidator; // JSON Validation Object String basicValidationJson = "{attribute: foo}"; // Target JSON to Validate String targetJson = "{foo:bar, foo:bat}" // Instantiate JsonValidation Object JsonValidator validator = new JsonValidator(); // validate returns a boolean of whether the validation passed boolean result = validator.validate(basicValidationJson, targetJson); System.out.println(result) >> true
There was an error while loading. Please reload this page.