These are chat archives for Mashape/unirest-java

Feb 2017
Feb 01 2017 01:00
Could not get getString() to work. It seems funny that response.getBody().toString() and response.getBody() seem to return the same string.
Especially odd considering my initial call was Unirest.get(base_url).asJson(); --which I'd presume would return what I'd call a dict if this was Python and if I was using the excellent Requests lib.
miguel de anda
Feb 01 2017 01:04
Yeah many logging libraries just call .toString on objects to output a string value. I'm on mobile right now but in the past I just get the body as string and use a separate JSON library but a quick search for "unirest JSON" on stack overflow has a promising solution but it may be out of date