title: json parsing error in Springboot
body: <p>I have a simple springboot program which takes a json and prints it. The main intention was to do json validator package usage, but the current context is on the basic request parsing. The problem is when i tryy to map the input request into an class entity, it is giving the below error : "org.springframework.http.converter.HttpMessageNotReadableException",.</p>
  
  <ul>
  <li><p><strong>Controller  ( Hello.java ) :</strong></p>
  
  <pre><code>    @RequestMapping(method = RequestMethod.POST , consumes = "application/json")
      public ResponseEntity&lt;String&gt; welcome(
              @RequestBody DemoEntity demoEntity )
      {
          System.out.println(demoEntity.getName());
          String response ="success";
          return new ResponseEntity&lt;&gt;(response, HttpStatus.CREATED);
      }
  }
  </code></pre></li>
  <li><p><strong>Java Class entity :</strong></p>
  
  <p>public class DemoEntity implements Serializable {</p>
  
  <pre><code>    @JsonProperty("name")
      private String name;
      @JsonProperty("no")
      private int no;
  
      public int getNo() {
          return no;
      }
  
      public void setNo(int no) {
          this.no = no;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      DemoEntity(String name)
      {
          this.name = name;
      }
  }
  </code></pre>
  
  <ul>
  <li><strong>Complete Exception :</strong></li>
  </ul>
  
  <p>{
      "timestamp": 1497594485418,
      "status": 400,
      "error": "Bad Request",
      "exception": "org.springframework.http.converter.HttpMessageNotReadableException",
      "message": "JSON parse error: Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value\n at [Source: java.io.PushbackInputStream@75be93a7; line: 1, column: 3]",
      "path": "/welcome"
  }</p></li>
  </ul>
  
  <p><strong>Sample input</strong> request in the body :
  {"name":"Roopesh", "no":123123}</p>