What I'm attempting to do here is only read/parse the JSON portion of a file that is structured like this:
From: blahblah:blahblah:3:120319123
2015-02-03 20:05:48.4070783443 +0000 UTC
{"id":"daj;flkaj;dl", "body":"dafjelkaf", "morestuff":
"flakejfl;ka}flkajfl;daf{fad"}
From: blahblah:blahblah:2:120319123
2016-04-03 20:05:48.4070783443 +0000 UTC
{"id":"daj;flkaj;dl", "body":"dafjelkaf", "morestuff":
"flakejfl;ka}flkajfl;daf{fad"}
I was originally planning to use FlatFileItemReader with the JsonLineMapper, but I would first need to discard the useless lines before parsing the Json line.
How can I skip the line that starts with From:
, the line with the date, and blank line when reading?