I am trying to upload a zipfile and load the json data from json file which is in the zipFile to respective DTO's.
upload part (following annotations are referred to spring boot annotation):
@ApiOperation(value = "Imports one or more files")
@PostMapping("/fileExchange/import")
public ResponseEntity Import(@RequestParam MultipartFile file)
Please suggest possible approaches to load json file data dynamically into respective DTO's without reading the jsonFile manually and as jsonFile length and data may vary.