title: Using spring converter in @RequestBody
body: <p>Is it possible to enforce Converter ( org.springframework.core.convert.converter.Converter) to finish json object mapping?</p>
  
  <p>Json code example:</p>
  
  <pre><code>{
   "name": "somename",
   "customObject": id
  }
  </code></pre>
  
  <p>where somename - string, id - integer value</p>
  
  <p>mapping to :</p>
  
  <pre><code>@Getter
  @Setter
  @NoArgConstructor
  public class ParentObject{
      private String name;
      private CustomObject customObject; 
  }
  </code></pre>
  
  <p>Converter code example:</p>
  
  <pre><code>@Component
  public class CustomObjectConverter implements Converter&lt;String, CustomObject&gt;{
  
      @Autowired
      private CustomObjectService customObjectService;
  
      @Override
      public CustomObject convert(String arg0) {
          Long id = Long.parseLong(arg0);
          return customObjectService.findById(id);
      }   
  }
  </code></pre>
  
  <p>What I want to achieve is to map that json to the object which will have automatically fetched from db nested object.</p>