0

I am getting half json response from url and print in logcat. The response contains large data so how can i get the full json response.

Saravanan Selvam
  • 163
  • 1
  • 5
  • 17
  • Although we'd love to guess at the problem, it would be very helpful to see what code you are using to issue web requests and parse your JSON responses. – andrewdleach Sep 11 '15 at 15:20
  • Check this answer to increase logcat http://stackoverflow.com/questions/27618977/android-studio-maximum-number-of-lines-logcat – xiaomi Sep 11 '15 at 15:21
  • possible duplicate of [Android - Set max length of logcat messages](http://stackoverflow.com/questions/8888654/android-set-max-length-of-logcat-messages) – poss Sep 11 '15 at 15:26

1 Answers1

0

Maybe this library may help you to solve the problem ,but it's document is written by Chinese . I have translated the main part for you :

  1. You need to init the lib in your onCreate method like this: L.init();

  2. And then you can use it to print your json info like this: L.json(youJsonObj.toString());

The logcat will show like this:

Smittey
  • 2,475
  • 10
  • 28
  • 35
pony
  • 1,331
  • 11
  • 13