I\'m using Spring to implement a RESTful web service. One of the endpoints takes in a JSON string as request body and I wish to map it to a POJO. However, it seems right now
The formatting on this is terrible, but this should work for jackson configuration.
ALso, as mentioned in a comment, your JSON is wrong for your object.
{"firstname":"xyz","lastname":"XYZ"}
does appear to be the correct JSON for your object.