title: Failed to convert boolean to enum using Jackson
body: <p>I have following java class in a Springboot application</p>
  <pre><code>public enum Status {
      
      DISABLED(false),
      
      ENABLED(true);
      
      private final boolean enabled;
      
      Status(boolean value){
          this.enabled = value;
      }
  
      public boolean value() {
          return this.enabled;
      }   
      
      /*
      @JsonValue public boolean jsonValue() { return enabled; }
      
      Error: Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `com.q.demo.model.Status` from Boolean value (token `JsonToken.VALUE_TRUE`); 
      
      */
      
      /*
      public static Status forValue(@JsonProperty(&quot;enabled&quot;) Boolean status) {
          if (status == null) {
             return null;
          }
          if (Status.ENABLED.value() == status.booleanValue()) {
                return Status.ENABLED;
          } else {
               return Status.DISABLED;
          }
     }
     
     Error: Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Input mismatch reading Enum `com.q.demo.model.Status`: properties-based `@JsonCreator` ([method com.q.demo.model.Status#forValue(java.lang.Boolean)]) expects JSON Object (JsonToken.START_OBJECT), got JsonToken.VALUE_TRUE;
     */
  
  }
  
  public class User {
      
      private Long userId;
      
      private String userName;
      
      private String role;
      
      private String password;
      
      private Status enabled;
  
      //Getters and setters
  
  }
  </code></pre>
  <p>I would like to serialize/deserialize json given below to the enum</p>
  <p>{
  &quot;userName&quot; : &quot;usrer&quot;,
  &quot;role&quot; : &quot;role&quot;,
  &quot;password&quot; : &quot;psw&quot;,
  &quot;enabled&quot; : true
  }</p>
  <p>I am not successful by using  either @JsonProperty(which accepts String only) or @JsonValue (given in the code as commented line with error message)  or @Jsconcreator (again code and error message given in the commented section. Can somebody give me a pointer? Jackson version is 2.13.0. Thank you.</p>