io.unlogged.runner.JsonTreeUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unlogged-sdk Show documentation
Show all versions of unlogged-sdk Show documentation
Record java code execution with unlogged java sdk
package io.unlogged.runner;
import com.fasterxml.jackson.databind.JsonNode;
public class JsonTreeUtils {
public static JsonNode getValueFromJsonNode(JsonNode objectNode, String selectedKey) {
if (selectedKey == null || selectedKey.equals("/")) {
selectedKey = "";
}
return objectNode.at(selectedKey);
}
}