This is my json-string:
[
{
"id": 1,
"ip": "192.168.0.22",
"folderName": "gpio1_pg3"
},
{
"id": 2,
"ip": "192.168.0.22",
"folderName": "gpio2_pb16"
}
]
I want to iterate about the array, because I will create an special object for each array member.
This is the way how I get the json string from an http url.
BufferedReader bufferedReader =
new BufferedReader(new InputStreamReader(inputStreams, Charset.forName("UTF-8")));
String jsonText = readAll(bufferedReader);
Could you give me an example how I can get an Array of all json-elements. One array-element have to contain the id, ip, and folderName.