I am trying to parse JSON whose format looks like this:
{"user_name":"","zip_code":null}
{"user_name":"","zip_code":null}
{"user_name":"","zip_code":null}
{"user_name":"","zip_code":null}
It displays the amount of users in a certain database. However, the number of users will be unknown.
What I would like to do is assign each user and their data to their own array in a 2-d array
String[][] users = new String[USER_AMOUNT][2];
(2 for the user_name and zip_code)
Is there a way to do that with the given format of JSON?