Fixed reading of JSON replies in API utils.

Reading a JSON response from the requests module needs to be done with a function call.