I am trying to get a jSON response in Android from my Django based web backend. The response I am getting is
03-19 16:32:32.120: I/System.out(7442): This si
TL;DR
httpconn.setRequestProperty("Accept", "application/json");
text/html, image/gif, image/jpeg, *; q=.2, /; q=.2
When text/html
is used django returns JSON wrapped with HTML. In case when plain JSON is needed, Accept HttpHeader value should be set to 'application/json'