I have the contents of this page stored in a string variable. I spent several hours on various methods of working with json in java and learned a lot about the build path, dependencies, ssl certificates, etc. I say this to emphasize the fact that I was looking for the answer to this question myself. I finally collapsed and I need help.
I am looking for a way to turn this string into some kind of json array so that I can access individual elements more easily. For example, something like:
int map = jsonArray[index].getInt("map_Id");
I hope that what I'm trying to do is clear enough. Any help would be appreciated.
edit: I am currently trying to do this using gson, but I am open to suggestions.
source share