signalapp/libsignal-service-java · JsonUtil.java
java logo
public static <T> T fromJson(String json, Class<T> clazz)
      throws IOException
  {
    return objectMapper.readValue(json, clazz);
  }
Similar code snippets
1.
Netflix/conductor · CassandraBaseDAO.java
Match rating: 77.1% · See similar code snippets
java logo
<T> T readValue(String json, Class<T> clazz) {
        try {
            return objectMapper.readValue(json, clazz);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
2.
hawkular/hawkular-commons · JsonUtil.java
Match rating: 76.54% · See similar code snippets
java logo
public static <T> T fromJson(String json, Class<T> clazz) {
        try {
            return MAPPER.readValue(json, clazz);
        } catch (IOException e) {
            throw new IllegalStateException(e);
        }
    }
3.
boonproject/boon · ObjectMapperImpl.java
Match rating: 74.5% · See similar code snippets
java logo
@Override
    public <T> T fromJson( String json, Class<T> clazz ) {
            return readValue ( json, clazz );
    }
4.
Multifarious/MacroManager · JsonUtil.java
Match rating: 74.37% · See similar code snippets
java logo
public static <T> T fromJSON(String json, Class<T> cls) throws IOException {
        return MAPPER.readValue(json, cls);
    }
5.
hawkular/hawkular-alerts · JsonUtil.java
Match rating: 73.88% · See similar code snippets
java logo
public static <T> T fromJson(String json, Class<T> clazz) {
        return fromJson(json,clazz, false);
    }
6.
l0rdn1kk0n/wicket-jquery-selectors · Json.java
Match rating: 73.72% · See similar code snippets
java logo
public static <T> T fromJson(final String json, final Class<T> clazz) {
        return fromJson(parse(json), clazz);
    }
7.
xiaolongzuo/niubi-job · JsonHelper.java
Match rating: 72.76% · See similar code snippets
java logo
public static <T> T fromJson(String json, Class<T> clazz) {
        return GSON.fromJson(json, clazz);
    }
8.
nulab/backlog4j · Jackson.java
Match rating: 72.28% · See similar code snippets
java logo
public static <T> T fromJsonString(String json, Class<T> clazz) {

        try {
            return objectMapper.readValue(json, clazz);
        } catch (Exception e) {
            throw new BacklogAPIException("parse json is failed.",e);
        }
    }
9.
DDTH/ddth-commons · SerializationUtils.java
Match rating: 71.66% · See similar code snippets
java logo
public static <T> T fromJson(JsonNode json, Class<T> clazz) {
        return fromJson(json, clazz, null);
    }
10.
GetStream/stream-java · Serialization.java
Match rating: 71.61% · See similar code snippets
java logo
public static <T> T fromJSON(InputStream json, Class<T> type) throws IOException {
        return mapper.readValue(json, type);
    }