I am converting Java bean to JSON string using writeValueAsString method of ObjectMapper where uppercase variables from Java bean is being changed to lowercase in JSON strin
Add Json Property with required keycase. Create variable with lowercase.
public class BaseBean { @JsonProperty("XId") private int xId; .. }
Hope this will help