We are migrating our project from jersey 1.X version to 2.X .
public static Filter buildFilter(String s) throws Exception {
JSONJAXBContext context = new JSONJAXBContext(JSONConfiguration.natural().build(),FilterModel.class);
JSONUnmarshaller unmarshaller = context.createJSONUnmarshaller();
FilterModel model = unmarshaller.unmarshalFromJSON(new StringReader(s),
FilterModel.class);
return model.build();
}
So my question is how we can do the changes and compatible the above code to Jersey 2.X ?
Thanks advance.