![JAR search and dependency download from the Maven repository](/logo.png)
io.apicurio.datamodels.models.util.ReaderUtil Maven / Gradle / Ivy
package io.apicurio.datamodels.models.util;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.apicurio.datamodels.models.Node;
public class ReaderUtil {
public static final void readExtraProperties(ObjectNode json, Node node) {
if (json != null) {
JsonUtil.keys(json).forEach(key -> {
JsonNode value = JsonUtil.consumeAnyProperty(json, key);
node.addExtraProperty(key, value);
});
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy