I am having a lot of tourble with this. I am trying to work on an updater and i am using an api that returns this from a url.: JSON
[
{
"downloadUrl":"URL",
"fileName":"Name",
"gameVersion":"Version",
"name":"Name",
"projectId":ID,
"releaseType":"beta"
},
{
"downloadUrl":"URL",
"fileName":"Name",
"gameVersion":"Version",
"name":"Name",
"projectId":ID,
"releaseType":"beta"
}
]
How can i get The Data out of this JSON returned by the URL. I do not want to use and "3rd Party" Parsers. Thanks. Also, i was stuck on this part:
I know i need to loop though an array, but there is no main array, unless it is "". ? That is what confused me. How can i parse this JSON from a url?
I saw someone did it like this, but idk if that will owrk in my JSON? Parsing JSON Object in Java