When I send JSON request with integer value, it gets converted to string on the Java side automatically where the accepting field is of String type. I am using Jersey Jackson API for JSON handling. e.g.,
JSON request:
{
"executable":1
}
Here I am sending integer value to string type executable variable. But it is accepting the integer value and converting it to string.
What my requirement is strict validation for data types.