public final class JsonJacksonUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
validateMandatoryFields(com.fasterxml.jackson.databind.JsonNode jsonNode,
String... mandatoryFields)
Verifies that mandatory fields are present in the given JSON node.
|
public static void validateMandatoryFields(com.fasterxml.jackson.databind.JsonNode jsonNode, String... mandatoryFields) throws IllegalArgumentException
jsonNode
- JSON node to verify.mandatoryFields
- mandatory fields.IllegalArgumentException
- if any of the mandatory fields is
missing.Copyright © 2015. All Rights Reserved.