dropbox/dropbox-sdk-java · StoneSerializer.java
java logo
public T deserialize(InputStream json) throws IOException, JsonParseException {
        JsonParser p = Util.JSON.createParser(json);
        p.nextToken();
        return deserialize(p);
    }
Similar code snippets
1.
dropbox/dropbox-sdk-java · StoneSerializer.java
Match rating: 71.73% · See similar code snippets
java logo
public T deserialize(String json) throws JsonParseException {
        try {
            JsonParser p = Util.JSON.createParser(json);
            p.nextToken();
            return deserialize(p);
        } catch (JsonParseException ex) {
            throw ex;
        } catch (IOException ex) {
            throw new IllegalStateException("Impossible I/O exception", ex);
        }
    }
2.
Indoqa/logspace · EventJsonDeserializer.java
Match rating: 65.58% · See similar code snippets
java logo
public static List<Event> fromJson(JsonParser parser) throws IOException {
        return new EventJsonDeserializer(parser).deserialize(false);
    }
3.
zutnop/telekom-workflow-engine · JsonUtil.java
Match rating: 65.18% · See similar code snippets
java logo
public static Object deserialize( String json ){
        if( json == null ){
            return null;
        }
        return deserialize( json, null );
    }
4.
zutnop/telekom-workflow-engine · JsonUtil.java
Match rating: 60.77% · See similar code snippets
java logo
public static <T> T deserialize( String json, Class<T> type ){
        if( json == null ){
            return null;
        }
        JsonParser parser = new JsonParser();
        JsonElement element = parser.parse( json );
        @SuppressWarnings("unchecked")
        T result = (T)deconvert( element, type );
        return result;
    }
5.
Indoqa/logspace · EventJsonDeserializer.java
Match rating: 59.84% · See similar code snippets
java logo
public static List<Event> fromJson(InputStream inputStream) throws IOException {
        return new EventJsonDeserializer(inputStream).deserialize(true);
    }
6.
caelum/vraptor4 · CalendarGsonConverter.java
Match rating: 58.91% · See similar code snippets
java logo
@Override
	public Calendar deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
		return DatatypeConverter.parseDate(json.getAsString());
	}
7.
caelum/vraptor4 · DateGsonConverter.java
Match rating: 58.73% · See similar code snippets
java logo
@Override
	public Date deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
		try {
			return getFormat().parse(json.getAsString());
		} catch (ParseException e) {
			throw new JsonSyntaxException(json.getAsString(), e);
		}
	}
8.
hawkular/hawkular-apm · SpanServiceElasticsearch.java
Match rating: 58.66% · See similar code snippets
java logo
private <T> T deserialize(String json, Class<T> type) throws IOException {
        JsonParser parser = mapper.getFactory().createParser(json);

        return parser.readValueAs(type);
    }
9.
java logo
@Override
    public Long deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
        if (json.isJsonPrimitive()) {
            return json.getAsLong();
        } else {
            return context.<MongoLong64>deserialize(json, MongoLong64.class).getValue();
        }
    }
10.
OnyxDevTools/onyx-database-parent · JSON.java
Match rating: 58.64% · See similar code snippets
java logo
@Override
    public Date deserialize(JsonElement json, Type date, JsonDeserializationContext context) throws JsonParseException {
        String str = json.getAsJsonPrimitive().getAsString();
        try {
            return apiClient.parseDateOrDatetime(str);
        } catch (RuntimeException e) {
            throw new JsonParseException(e);
        }
    }