Create a pojo class of Json objects [using jackson]
Share[java] //1. create a class to map the json data e.g import org.codehaus.jackson.annotate.JsonAnyGetter; import org.codehaus.jackson.annotate.JsonAnySetter; import org.codehaus.jackson.annotate.JsonCreator; import org.codehaus.jackson.annotate.JsonProperty; import java.util.HashMap; import java.util.Map; /** * * @author Shishir Pokharel */ public class model { // and then “other” stuff: protected Map<String, Object> other = new HashMap<String, Object>(); // Two mandatory properties protected final int id; … Continue reading Create a pojo class of Json objects [using jackson]
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed