2
I’m using the Jersey library in conjunction with the Jackson library to use REST-like web services. In calls, I usually use the following code that transforms a particular entity into a JSON to be sent in the request body.
Map<String, Object> response = api.request().post(Entity.json(entidade), Map.class);
The point is that there are some attributes in entidade
to be sent that I wish were not serialized as JSON in the request and were absent from it.
Is there any annotation
or something of the kind in which it is possible to determine attributes that should not be serialized in this type of request?