How can i Convert XML to JSON

overshield
Mon, 28 Mar 2022 01:53:02 +0000
Questions about Thunkable

I’m trying to grab images from Flickr API, it returns it in XML format but they also have an argument for format=json

I get the following when I submit it

jsonFlickrApi({“photos”:{“page”:1,“pages”:547568,“perpage”:1,“total”:547568,“photo”:[{“id”:“51964262546”,“owner”:“194499057@N06”,“secret”:“fb65aea0be”,“server”:“65535”,“farm”:66,“title”:“Shark In The Water”,“ispublic”:1,“isfriend”:0,“isfamily”:0}]},“stat”:“ok”})

I have it set to a single photo just for my own clarity but I cannot get this to convert to an object to grab the properties.

No matter what I try I get null.

8 posts - 4 participants