I would like to parse some JSON and for that I need to create a POJO class. My POJO looks like below;
public class MyPOJO {
private String public;
public String getPublic(){
return public;
}
public void setPublic(String public){
this.public = public;
}
}
There is an attribute public
in the JSON, so I have to include it here. But java is showing error because public
is a access modifier. How can I fix this?