2

I have a txt file that contains multiples Json objects (let say 10), I got this file through an http request. I'm trying on java to get all the Json objects (the 10 differents JSON objects) contained in that file but I can't do it, as I don't know how to "separate" all the different Json objects. I'm using the Json simple library.

This is what I have now :

FileReader fr = new FileReader("recordings.txt"); 
JSONParser parser = new JSONParser();
JSONObject jsonObject = (JSONObject) parser.parse(fr);

But this works only for one JSON object. Can you please help me ?

Edit: This is the query that gives the recordings.txt file :

Query

The details of each JSON objects structure can be found here :

JSON details

Youcef B
  • 47
  • 2

0 Answers0