title: Json Object conversion to java object using jackson
body: <p>I have following json data</p>
  
  <pre><code>{"id":10606,
   "name":"ProgrammerTitle",
   "objectMap":{"programme-title":"TestProgramme","working-title":"TestProgramme"}
  }
  </code></pre>
  
  <p>I want to set this data to my pojo object </p>
  
  <pre><code>public class TestObject {
      private Long id;
      private String name;
  
      @JsonProperty("programme-title")
      private String programmeTitle;
  
      @JsonProperty("working-title")
      private String workingTitle;
  }
  </code></pre>
  
  <p>Here i am able to set id and name in my test object but for object map i am not able to set data.</p>
  
  <p>So i have made on more class for ObjectMap which contains programmeTitle &amp; workingTitle this works fine but i can't set this fields directly to my pojo object 
  is this possible to set?</p>
  
  <p>I am using Jackson Object Mapper to convert json data.</p>
  
  <p>It is working fine if i create another java object inside my pojo like:</p>
  
  <pre><code>public class TestObject {
  private Long id;
  private String name;
  
  @JsonProperty("objectMap")
  private ObjectMap objectMap;
  
  public Long getId() {
      return id;
  }
  
  public void setId(Long id) {
      this.id = id;
  }
  
  public String getName() {
      return name;
  }
  
  public void setName(String name) {
      this.name = name;
  }
  
  public ObjectMap getObjectMap() {
      return objectMap;
  }
  
  public void setObjectMap(ObjectMap objectMap) {
      this.objectMap = objectMap;
  }
  </code></pre>
  
  <p>}</p>
  
  <pre><code>public class ObjectMap {
  
  @JsonProperty("programme-title")
  private String programmeTitle;
  
  @JsonProperty("working-title")
  private String workingTitle;
  
  public String getProgrammeTitle() {
      return programmeTitle;
  }
  
  public void setProgrammeTitle(String programmeTitle) {
      this.programmeTitle = programmeTitle;
  }
  
  public String getWorkingTitle() {
      return workingTitle;
  }
  
  public void setWorkingTitle(String workingTitle) {
      this.workingTitle = workingTitle;
  }
  </code></pre>
  
  <p>}</p>