use isJsonArray for testing response type