I am retrieving a JSON string from the Internet; like most JSON, I saw that it includes long keys separated by underscores. Essentially, my goal is to deserialize JSON into java objects, but I don't use underscores in Java code.
For example, I can have a User class with the firstName field in the camel case, at the same time I need to somehow tell Jackson to map the first_name key from the JSON class field to firstName . Is it possible?
class User{ protected String firstName; protected String getFirstName(){return firstName;} }
java jackson
user1384991 May 09 '12 at 15:30 2012-05-09 15:30
source share