-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
Na situação abaixo, exemplo disponível aqui no git da api, tenta-se obter um JSONArray que seria o extrato de boletos, no entanto se uma exception ocorre o retorno é um JSONObject, gerando um erro de conversão, ou seja, o retorno da exception causa outra exception.
String response = EntityUtils.toString(client.doRequest(httpGet).getEntity()); JSONArray extratoObject = new JSONArray(response); int totalItensExtrato = extratoObject.length();