Hi All,
I am a bit new to Jackson and as of now struggling with deserializing a particular JSON request of the following format
{"SearchCriteria":{"SearchOperationList":[{"Name":"Products","Value": "Adalimumamb","Operator": "="}],"SearchEquation": [{"Name": "Products","Value":"Adalimumamb","Operator":"="}]}}
The SearchCriteria Java Class contains the following JAXB Annotation:
@XmlRootElement(name = "SearchCriteria")
public class SearchCriteriaType {
protected Object[] searchClause;
@XmlElements({@XmlElement(name = "SearchOperationList", type = SearchOperationType.class), @XmlElement(name = "SearchEquation", type = SearchAttributeType.class)})
public Object[] getSearchClause() {
public void setSearchClause(Object[] searchClause) {
this.searchClause = searchClause;
The target of this implementation is to store both JSON Array Objects coming from "SearchOperationList" and "SearchEquation" into the same Object[] array
I get the following exception while the request is being processed.
Caused by: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "SearchEquation" (Class SearchCriteriaType), not marked as ignorable
All this implementation is part of REST-full webservice using Apache CXF framework and JsonProvider being used is
org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider
Jackson version is 1.9
Any help on how to achieve this would be appreciated.
TIA
Pawan