"{"title":"Title","html":"<div>Text</div><div><br></div>","message":"Message"}"
And i have a java class like : import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import org.springframework.web.util.HtmlUtils;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Note {
private String id;
private String title;
@JsonProperty("html")
private String body;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public void parseHtml() {
body = HtmlUtils.htmlEscape(body);
title = HtmlUtils.htmlEscape(title);
}
}
The controller corresponding to this request is :Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE