I try to get this json encoded output from php
$response["success"] = $id;
echo json_encode($response);
echo json_encode($eventid);
while $response only contains an integer at ["success] and $eventid contains an array of ids(for example ["1","3"]). So the php file output is for example like this:
{"success":"3"}["1","3","7"]
Now I try to get both the success, and the eventid. I get the success with
int id = json.getInt("success");
and it works, the problem is to get the array of eventids. I found this post: stackoverflow but it wasn't helpful for me, because I don't have tags for each single element in the array. So the question is whether I do have to add tags for every single element, or there is another Syntax which I can use?
Thanks in advance