aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/utils/JsonUtils.java
blob: 492e13727649c76bedf20286c62a9d607ad473d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cgeo.geocaching.utils;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;

public class JsonUtils {

    private static final ObjectMapper mapper = new ObjectMapper();
    public static final ObjectReader reader = mapper.reader();
    public static final ObjectWriter writer = mapper.writer();

    public static final JsonNodeFactory factory = new JsonNodeFactory(true);

    private JsonUtils() {
        // Do not instantiate
    }

}