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
But the response from the URL that I get is a JSON with no name,
{
"atividade_principal": [
{
"text": "Portais, provedores de conteúdo e outros serviços de informação na internet",
"code": "63.19-4-00"
}
],
"data_situacao": "01/09/2004",
"complemento": "ANDAR 17A20 TSUL 2 17A20",
"tipo": "MATRIZ",
"nome": "GOOGLE BRASIL INTERNET LTDA.",
//I need this part
Can someone help me, please ? This array worked like a charm, how to get "nome" from this JSON ?
If anyone needs the whole JSON:
https://www.receitaws.com.br/v1/cnpj/06990590000123
That's my Log:
org.json.JSONException: Value GOOGLE BRASIL INTERNET LTDA at nome of type java.lang.String cannot be converted to JSONArray
I thank you for the help, my native forums aren't helping me