I have a large dynamic JSON data and I want to split it into multiple JSON objects to make API requests dynamically in Java.
The data I receive is a large dynamic JSON, and I need to split it into multiple JSON objects to make API requests dynamically in Java.
Initially, some users receive 11 objects in the JSON dynamically, while others receive 25.
The process involves splitting the single JSON into multiple JSON objects and then making the API call.
{“total”:11, “plist”:[
{
“reference” : “ABCDE123455432101”,
“date” : “01/01/2021”,
“value” : 111,
},{
“reference” : “ABCDE123455432102”,
“date” : “02/02/2022”,
“value” : 222,
},{
“reference” : “ABCDE123455432103”,
“date” : “03/03/2023”,
“value” : 333,
},{
“reference” : “ABCDE123455432104”,
“date” : “04/04/2024”,
“value” : 444,
},{
“reference” : “ABCDE123455432105”,
“date” : “05/05/2025”,
“value” : 555,
},{
“reference” : “ABCDE123455432106”,
“date” : “06/06/2026”,
“value” : 666,
},{
“reference” : “ABCDE123455432107”,
“date” : “17/08/2027”,
“value” : 777,
},{
“reference” : “ABCDE123455432108”,
“date” : “08/08/2028”,
“value” : 888,
}
,{
“reference” : “ABCDE123455432109”,
“date” : “09/09/2029”,
“value” : 999,
}
,{
“reference” : “ABCDE123455432110”,
“date” : “09/10/2029”,
“value” : 100,
}
,{
“reference” : “ABCDE123455432110”,
“date” : “09/10/2029”,
“value” : 100,
}
}]
I have a large dynamic JSON data and I want to split it into multiple JSON objects to make API requests dynamically in Java.
The data I receive is a large dynamic JSON, and I need to split it into multiple JSON objects to make API requests dynamically in Java.
Initially, some users receive 11 objects in the JSON dynamically, while others receive 25.
The process involves splitting the single JSON into multiple JSON objects and then making the API call. How to make api call dynamically in java
abinaya ramsamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.