foundation-runtime/service-directory · JsonSerializer.java
java logo
public static <T> T deserialize(byte[] input, Class<T> classType)
            throws JsonParseException, JsonMappingException, IOException {
        return mapper.readValue(input, classType);
    }
Similar code snippets
1.
foundation-runtime/service-directory · JsonSerializer.java
Match rating: 64.86% · See similar code snippets
java logo
public Object deserialize(byte[] input, TypeReference<?> typeRef)
            throws JsonParseException, JsonMappingException, IOException {
        return mapper.readValue(input, typeRef);
    }
2.
Match rating: 64.13% · See similar code snippets
java logo
private <T> T deserializeString(String data, Class<T> clazz) throws JsonParseException, JsonMappingException, IOException {
        return (T) mapper.readValue(
                new ByteArrayInputStream(data.getBytes()),
                clazz);
    }
3.
pac4j/vertx-pac4j · DefaultJsonConverter.java
Match rating: 62.76% · See similar code snippets
java logo
@SuppressWarnings("unchecked")
    private <T> T decode(String string, Class<?> clazz) throws JsonParseException, JsonMappingException, IOException {
        return (T) mapper.readValue(string, clazz);
    }
4.
craterdog/java-smart-objects · SmartObject.java
Match rating: 62.45% · See similar code snippets
java logo
static public <T> T fromString(Class<T> classType, String json) throws IOException {
        return safeMapper.readerFor(classType).readValue(json);
    }
5.
duracloud/duracloud · JaxbJsonSerializer.java
Match rating: 62.25% · See similar code snippets
java logo
public T deserialize(String json) throws IOException {
        return (T) mapper.readValue(json, type);
    }
6.
baidubce/bce-sdk-java · JsonUtils.java
Match rating: 61.99% · See similar code snippets
java logo
public static <T> T loadFrom(InputStream input, Class<T> clazz)
            throws JsonParseException, JsonMappingException, IOException {
        return JsonUtils.objectMapper.readValue(input, clazz);
    }
7.
conveyal/gtfs-lib · JsonManager.java
Match rating: 61.66% · See similar code snippets
java logo
public T read (String s) throws JsonParseException, JsonMappingException, IOException {
        return mapper.readValue(s, theClass);
    }
8.
conveyal/gtfs-lib · JsonManager.java
Match rating: 61.13% · See similar code snippets
java logo
public T read (JsonParser p) throws JsonParseException, JsonMappingException, IOException {
        return mapper.readValue(p, theClass);
    }
9.
line/centraldogma · Jackson.java
Match rating: 61.02% · See similar code snippets
java logo
public static <T> T readValue(String data, Class<T> type) throws JsonParseException, JsonMappingException {
        try {
            return compactMapper.readValue(data, type);
        } catch (JsonParseException | JsonMappingException e) {
            throw e;
        } catch (IOException e) {
            throw new IOError(e);
        }
    }
10.
aws/aws-sdk-java · Jackson.java
Match rating: 60.39% · See similar code snippets
java logo
public static <T> T load(Class<T> clazz, InputStream is)
            throws JsonParseException, JsonMappingException, IOException {
        return MAPPER.readValue(is, clazz);
    }