Android Retrofit always returns false value for the type boolean while fetching jsonobject
<p>I am new using retrofit and here i am stuck with an problem where retrofit always returns false for boolean type object which is actually 1(true) which i am retriving.</p>

<p>here below is my pojo class for retriving data</p>

<pre><code>public class JobsModel implements Serializable {

@SerializedName("posted_on")
private String postedOn;
@SerializedName("is_active")
private boolean isActive=false;

public JobsModel(String postedOn, boolean isActive) {
    this.postedOn=postedOn;
    this.isActive=isActive;
}

public Boolean getPostedOn() {
    return postedOn
}

public void setPostedOn(String postedOn) {
    postedOn= postedOn
}

public Boolean getActive() {
    return isActive;
}

public void setActive(Boolean active) {
    isActive = active;
}
</code></pre>

<p>}</p>

<p>any help would be much appreciated</p>