I am writing a recording to the Kinesis Firehose stream, which ultimately writes to the Amazon Kinesis Firehose S3 file.
My recording object looks like
ItemPurchase { String personId, String itemId }
Data is written to S3, it looks like this:
{"personId":"p-111","itemId":"i-111"}{"personId":"p-222","itemId":"i-222"}{"personId":"p-333","itemId":"i-333"}
NO COMMERCIAL DEATH.
NO STARTING BRACKET, as in a Json array
[
NO ENDING BRACKET, as in a Json array
]
I want to read this data to get a list of ItemPurchase objects.
List<ItemPurchase> purchases = getPurchasesFromS3(IOUtils.toString(s3ObjectContent))
What is the correct way to read this data?
source share