title: App Engine - How to passe JSON to Queue
body: <p>I would like to use Queue for execut long tasks with App Engin.</p>
  
  <p>So I create a Queue and set the url (this url is for execut the process)</p>
  
  <p>"columnNamesWrapper" is a POJO, so I convert it to String (json)</p>
  
  <pre><code>@RequestMapping(value = "/submitColumnMapping", consumes = MediaType.APPLICATION_JSON_VALUE)
  public @ResponseBody String submitMapping(@RequestBody final ColumnMappingCommand columnNamesWrapper) throws JsonProcessingException {
  
      Queue queue = QueueFactory.getDefaultQueue();
      TaskOptions task = TaskOptions.Builder.withUrl("/startProcessing").param("columnNamesWrapper", mapper.writeValueAsString(columnNamesWrapper));
      task.method(TaskOptions.Method.POST);
      task.header("Content-type", "application/json");
      queue.add(task);
  }
  
  
  @RequestMapping(value = "/startProcessing", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
  public @ResponseBody String startProcessing(@RequestBody final ColumnMappingCommand columnNamesWrapper) throws IOException {
  
      System.out.println("RUN");
  
  }
  </code></pre>
  
  <p>Problem,the task throw exception : 
  [INFO] Infos: Web hook at <a href="http://127.0.0.1:8080/startProcessing" rel="nofollow">http://127.0.0.1:8080/startProcessing</a> returned status code 415.  Rescheduling...</p>
  
  <p>And 415 status code is Unsupported Media Type, so the JSON.</p>
  
  <p>What can I do
  Need help</p>