All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lumbermill.internal.Json Maven / Gradle / Ivy

There is a newer version: 0.0.26
Show newest version
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