getUrlBytes is not giving me JSON, it's giving me XML?!?

I keep running into the following error:
org.json.JSONException: Value <?xml of type java.lang.String cannot be converted to JSONObject

Because this is what getUrlBytes is returning:
Received JSON: <?xml version="1.0" encoding="utf-8" ?>















<photo id=“33604048543” owner=“152629358@N08” secret=“59ba23ef00” server=“4162” farm=“5” title=“2017-05-02_05-45-05” ispublic=“1” isfriend=“0” isfamily=“0” url_s="https://farm5.staticflickr.com/4162/33604048543_

I’m literally getting XML instead of JSON from Flickr.

Now, when I type in all the same information for the URL/URI in my browser, I get the proper JSON. So, there’s either a problem with getUrlBytes or the Uri.parse method FlickrFetchr.fetchItems(). I can’t figure out why I’m getting XML. Any help would be greatly appreciated.

Figured it out, I left out the “format” “json” query parameter pair… Ugh!