Indoqa/logspace · EventJsonDeserializer.java
java logo
public static List<Event> fromJson(JsonParser parser) throws IOException {
        return new EventJsonDeserializer(parser).deserialize(false);
    }
Similar code snippets
1.
dropbox/dropbox-sdk-java · StoneSerializer.java
Match rating: 65.58% · See similar code snippets
java logo
public T deserialize(InputStream json) throws IOException, JsonParseException {
        JsonParser p = Util.JSON.createParser(json);
        p.nextToken();
        return deserialize(p);
    }
2.
Match rating: 63.95% · See similar code snippets
java logo
public static EventPage fromJson(byte[] data) throws IOException {
        EventPageJsonDeserializer deserializer = new EventPageJsonDeserializer(data);
        return deserializer.deserialize();
    }
3.
Match rating: 62.37% · See similar code snippets
java logo
public static EventPage fromJson(InputStream inputStream) throws IOException {
        EventPageJsonDeserializer deserializer = new EventPageJsonDeserializer(inputStream);
        return deserializer.deserialize();
    }
4.
dropbox/dropbox-sdk-java · StructSerializer.java
Match rating: 60.99% · See similar code snippets
java logo
@Override
    public T deserialize(JsonParser p) throws IOException, JsonParseException {
        return deserialize(p, false);
    }
5.
Match rating: 60.5% · See similar code snippets
java logo
public static void fromJson(String json, JsonSupport jsonSupport) {

    StringReader reader = new StringReader(json);
    JsonParser parser = Json.createParser(reader);
    Event event = parser.next();
    if (event != Event.START_OBJECT) {
      throw new IllegalStateException("Expected start event but found: " + event);
    }
    jsonSupport.fromJson(parser);
    reader.close();
  }
6.
zutnop/telekom-workflow-engine · JsonUtil.java
Match rating: 58.46% · See similar code snippets
java logo
public static Object deserialize( String json ){
        if( json == null ){
            return null;
        }
        return deserialize( json, null );
    }
7.
czyzby/gdx-lml · JsonSerializer.java
Match rating: 58.16% · See similar code snippets
java logo
@Override
    public Object deserialize(final String data) {
        try {
            return json.fromJson(null, data);
        } catch (final Exception exception) {
            throw new SerializationException("Unable to deserialize object from JSON.", exception);
        }
    }
8.
dropbox/dropbox-sdk-java · StoneSerializer.java
Match rating: 57.59% · 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);
        }
    }
9.
spring-projects/spring-social-linkedin · StringListDeserializer.java
Match rating: 57.58% · See similar code snippets
java logo
public List<String> deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
		return DeserializationUtils.deserializeFromDataNode(jp, ctxt, "values", new TypeReference<List<String>>() {});
	}
10.
mrcritical/ironcache · JodaDateTimeDeserializer.java
Match rating: 57.23% · See similar code snippets
java logo
@Override
	public DateTime deserialize(final JsonParser parser, final DeserializationContext context) throws IOException,
	JsonProcessingException {
		return formatter.parseDateTime(parser.getText());
	}