Class JsonValidator
java.lang.Object
com.markvarga21.studentmanager.util.validation.JsonValidator
A utility class which is used to validate JSON content.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isJsonValid
(com.fasterxml.jackson.databind.JsonNode json) Validates the JSON content.
-
Constructor Details
-
JsonValidator
public JsonValidator()
-
-
Method Details
-
isJsonValid
public boolean isJsonValid(com.fasterxml.jackson.databind.JsonNode json) Validates the JSON content.- Parameters:
json
- The JSON content to be validated.- Returns:
- Whether the JSON content is valid or not.
-