Correctly validate for boolean on json