title: Unexpected end-of-input: expected close marker for OBJECT
body: <p>I'm trying to create a geopoint in my app engine application but when I try to deserialize it I got this annoying message:</p>
  
  <pre><code>Uncaught exception from servlet
  org.codehaus.jackson.JsonParseException: Unexpected end-of-input: expected close marker for OBJECT (from [Source: java.io.StringReader@1a21658; line: 1, column: 0]).
  </code></pre>
  
  <p>This is my JSON code:</p>
  
  <pre><code>{
      "id": 31,
      "name": "pepe",
      "mail": "p@p.com",
      "password": 123,
      "age":10,
      "birthday": "01-06-1991",
      "desc" : " bla bla",
      "gp": {
       "latitude": 64.124596,
       "longitude": -147.8632
       }
  }
  </code></pre>
  
  <p>and this is the declaration of geopoint and my custom deserialize method:</p>
  
  <pre><code>GeoPoint gp;
  
  public GeoPoint getGp() {
      return gp;
  }
  
  @JsonDeserialize(using = CustomGeoPintDeserializer.class)
  public void setGp(GeoPoint gp) {
      this.gp = gp;
  }
  
  public  class CustomGeoPintDeserializer extends JsonDeserializer&lt;GeoPoint&gt; {
  
      @Override
      public GeoPoint deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
  
          System.out.println("ENTRA");
          ObjectMapper mapper = new ObjectMapper();
          JsonNode actualObj = mapper.readValue(jsonParser.getText(), JsonNode.class);
  
          double latitude = actualObj.get("latitude").getDoubleValue();
  
          double longitude = actualObj.get("longitude").getDoubleValue();
  
  
          return new GeoPoint(latitude,longitude);
      }
  }
  </code></pre>