Roland Mueller wrote:
Marcus Vinícius wrote:Hello,
I'm making this APP for my company, but I've never used JSON with Java before, so I'm kinda lost here. After watching some tutorials, I made this function
That's my Log:
org.json.JSONException: Value GOOGLE BRASIL INTERNET LTDA at nome of type java.lang.String cannot be converted to JSONArray
The JSON string from the URL shows that you have an JSON object that is not an array. As immediate child there is the JSON value "nome" which has value "GOOGLE BRASIL INTERNET LTDA." and is definitely no array as the error message in the log says.
Probably, you should only retrieve the object with key "nome" and return it. following code is an untested guess: