
lumbermill.internal.Json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lumbermill-core Show documentation
Show all versions of lumbermill-core Show documentation
Where Logs are cut into Lumber
package lumbermill.internal;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import okio.ByteString;
import java.io.IOException;
public class Json {
public static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
public static JsonNode parse(ByteString string) {
try {
return OBJECT_MAPPER.readTree(string.utf8());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy