I was trying to pass a Boolean value in JSON from Postman and every time it gives me this error: "Invalid JSON input: Unrecognized field āisCancellableā (class com.example.springsecurity.dto.AddProductDTO), not marked as ignorable; nested exception is com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field āisCancellableā at [Source: (PushbackInputStream); line: 6, column: 19]
Where this is what I want to input:
{
āisReturnableā: 0
}
I also tried adding āfalseā instead then it gives me this error: āJSON parse error: Unexpected character (āāā (code 39)): expected a valid value (JSON String, Number, Array, Object or token ānullā, ātrueā or āfalseā); nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (āāā (code 39)): expected a valid value (JSON String, Number, Array, Object or token ānullā, ātrueā or āfalseā)\n at [Source: (PushbackInputStream); line: 6, column: 19]ā,
Can anyone help with this?