List of usage examples for com.fasterxml.jackson.core JsonParser getValueAsInt
public int getValueAsInt(int defaultValue) throws IOException, JsonParseException
From source file:com.codepine.api.testrail.internal.IntToBooleanDeserializer.java
@Override public Boolean deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { return jp.getValueAsInt(0) <= 0 ? Boolean.FALSE : Boolean.TRUE; }