title: Storing boolean values in spring boot backend from android app
body: <p>I have an android app from where I am trying to execute an item.</p>
  
  <p>The item is executed on click of the checkbox and the repository in the spring back-end is updated with execution details.</p>
  
  <p>Now I want to store the state of the checkbox also in the database. Eg. When the checkbox is checked, database should store it as true and false when the checkbox is unchecked .</p>
  
  <p>Following is my code</p>
  
  <pre><code>    @RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
      @ResponseStatus(HttpStatus.CREATED)
      @Transactional(Transactional.TxType.REQUIRES_NEW)
      public void ItemExecution(@RequestBody ItemExecution itemExecution {
          Item item = itemRepository.findOne(itemExecution.getItem().getId()));
          itemExecutionService.executeItem(itemExecution,item,itemExecution.isExecutionState());
      }
  </code></pre>
  
  <p>I am getting the following error</p>
  
  <pre><code>Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
   at [Source: java.io.PushbackInputStream@609f7353; line: 10, column: 13]
  </code></pre>
  
  <p>Is this the right way to save a boolean value. Any help will be appreciated. Thank you</p>