# Boolean value is not taking in Postman

**URL:** <https://community.postman.com/t/boolean-value-is-not-taking-in-postman/13037>\
**Category:** Help Hub\
**Created:** [June 1, 2020, 4:44pm UTC](https://community.postman.com/t/boolean-value-is-not-taking-in-postman/13037 "2020-06-01T16:44:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VinayParida](https://avatars.discourse-cdn.com/v4/letter/v/f17d59/32.png) [@VinayParida](https://community.postman.com/u/VinayParida)\
**Post date:** [June 1, 2020, 4:44pm UTC](https://community.postman.com/t/boolean-value-is-not-taking-in-postman/13037/1 "2020-06-01T16:44:35Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [June 1, 2020, 5:36pm UTC](https://community.postman.com/t/boolean-value-is-not-taking-in-postman/13037/2 "2020-06-01T17:36:44Z")

</div>

There is a difference between isReturnable and isCancellable.

Since types are strictly enforced in Java, if you need to send a boolean, send a boolean not an integer.

Also make sure you use this " character for double quotes, not “.

---

<div class="post-metadata">

**Author:** ![VinayParida](https://avatars.discourse-cdn.com/v4/letter/v/f17d59/32.png) [@VinayParida](https://community.postman.com/u/VinayParida)\
**Post date:** [June 1, 2020, 5:53pm UTC](https://community.postman.com/t/boolean-value-is-not-taking-in-postman/13037/3 "2020-06-01T17:53:33Z")

</div>

That was bad from my part. I apologize but despite the name it’s a Boolean that I’m sending from my DTO.

And I copied paste the error so that “ came with it

Thank you
