[VIVO-1320] Convert some org.json usages to Jackson
This commit is contained in:
parent
58cba471a8
commit
826fb9c570
3 changed files with 29 additions and 38 deletions
|
@ -20,7 +20,6 @@ import javax.servlet.http.HttpServletResponse;
|
|||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.json.JSONException;
|
||||
|
||||
import org.apache.jena.ontology.OntModel;
|
||||
import org.apache.jena.query.Query;
|
||||
|
@ -107,7 +106,7 @@ class ProfileAutoCompleter extends AbstractAjaxResponder implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public String prepareResponse() throws IOException, JSONException {
|
||||
public String prepareResponse() throws IOException {
|
||||
if (term.isEmpty()) {
|
||||
return EMPTY_RESPONSE;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@ import javax.servlet.http.HttpServletResponse;
|
|||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.json.JSONException;
|
||||
|
||||
import edu.cornell.mannlib.vitro.webapp.application.ApplicationUtils;
|
||||
import edu.cornell.mannlib.vitro.webapp.config.ConfigurationProperties;
|
||||
|
@ -80,7 +79,7 @@ public class BasicProfilesGetter extends AbstractAjaxResponder {
|
|||
}
|
||||
|
||||
@Override
|
||||
public String prepareResponse() throws IOException, JSONException {
|
||||
public String prepareResponse() throws IOException {
|
||||
log.debug("search term is '" + term + "'");
|
||||
if (this.term.isEmpty() || this.profileTypes.isEmpty()) {
|
||||
return EMPTY_RESPONSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue