我使用jackson和sugar orm,解析时出现一些错误。 id字段不断地位于json中。我能做些什么来解决它?Jackson + SugarOrm id error
这个例子我的课:
@JsonIgnoreProperties(ignoreUnknown = true)
public class JsonScienceEvent extends SugarRecord<JsonScienceEvent>{
@JsonProperty("id")
private String eventId;
public JsonScienceEvent()
public JsonScienceEvent(String eventId){
this.eventId = eventId;
}
public String getEventId(){
return eventId;
}
发布错误堆栈 – vilpe89
也发布你试图解析的json –