--
You received this message because you are subscribed to the Google Groups "ipf-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/6114a7aa-1a61-4990-bee0-cae85827891dn%40googlegroups.com.
@Test
public void testResponse() throws Exception {
Response response = new Response();
response.setStatus(Status.SUCCESS);
System.out.println(response);
ObjectMapper objectMapper = createObjectMapper();
objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
String json = objectMapper.writeValueAsString(response);
System.out.println(json);
Object unmarshalled = objectMapper.readValue(json, Response.class);
System.out.println(unmarshalled);
}
prints:
Response(status=SUCCESS, errors=[])
{
"status" : "Success",
"error" : [ ]
}
Response(status=SUCCESS, errors=[])
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/47c762c5-728e-4be8-bbe8-932f003f8369n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/41e952a1-2eaf-49ec-9e96-8ba1083edde9n%40googlegroups.com.