use of org.gluu.oxtrust.service.antlr.scimFilter.util.ListResponseFidoDeviceSerializer in project oxTrust by GluuFederation.
the class FidoDeviceWebService method serializeToJson.
private String serializeToJson(Object object, String attributesArray) throws Exception {
ObjectMapper mapper = new ObjectMapper();
mapper.disable(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS);
SimpleModule customScimFilterModule = new SimpleModule("CustomScim2FidoDeviceFilterModule", new Version(1, 0, 0, ""));
ListResponseFidoDeviceSerializer serializer = new ListResponseFidoDeviceSerializer();
serializer.setAttributesArray(attributesArray);
customScimFilterModule.addSerializer(FidoDevice.class, serializer);
mapper.registerModule(customScimFilterModule);
return mapper.writeValueAsString(object);
}
Aggregations