Checking response to see if JObject or JArray