how to listen json file and write in spring