I have a JSON file url present in S3 which I need to parse and extract information out of it. How do I do that in java?
I have looked into some of the solutions mainly in Python but not able to do that in Java.
I can read the content using
S3Object object = s3Client.getObject(new GetObjectRequest(bucketName, key));
InputStream objectData = object.getObjectContent();
but I do not want to download the file and keep it. I just need to be able to parse this JSON file using Gson.
How do I achieve this?