Spring batch library provides intesnsive API to process huge logs file with support for file formats such as JSON,XML.
The library provides multiple implementation for custom processing. Official documentations is available https://docs.spring.io/spring-batch/docs/current/reference/html/readersAndWriters.html#readersAndWriters
This small spring boot application gives demo on JSON file reading and custom processing on the available records.
At the end it will used a JOB for persisting data to the database.