grabDataFromJsonResponse fails if response contains single string

json_decode could return scalar types, but grabDataFromJsonResponse treats them as arrays.

Also, maybe there should be an option to grab the whole response?