I want to transfer an object with an additional integer to my Jersey-Service.
My service method looks like this:
@POST
@Path("/test")
@Consumes("application/json")
public void test(Person pers, int number)
and the Json in the body looks like this:
{
"name":"TEST",
"surname":"TEST",
"number":"1000"
}
It works without the additional integer.
So I think it must be a wrong JSON message?
BTW: the number is indepentent from the object, so I cannot integrate this var into the person-class.
Please can someone help me?
best regards