Can you please use the preformatted text option in the editor when posting code examples, JSON, or responses. It stops everything from aligning to the left, making it hard to read.
{
"upaPhotoDescs": [
{
"id": 1,
"thumbUrl": "aHR0cHM6Ly91cGFtZWRpYS5hdHBjby5uZXQvcGhvdG9zLzA3NmVmMTJjLTg1ZmYtNGVkZS1hMjZhLWY2NjQ1MWM4NmViMy9zcXVhcmVfdGh1bWIvbWFwbGVsZWFmbG91bmdlLTEyLTEyMzIuanBlZw==",
"mediumSquareUrl": "aHR0cHM6Ly91cGFtZWRpYS5hdHBjby5uZXQvcGhvdG9zLzA3NmVmMTJjLTg1ZmYtNGVkZS1hMjZhLWY2NjQ1MWM4NmViMy9sYXJnZV9zcXVhcmVfdGh1bWIvbWFwbGVsZWFmbG91bmdlLTEyLTEyMzIuanBlZw==",
"largeUrl": "aHR0cHM6Ly91cGFtZWRpYS5hdHBjby5uZXQvcGhvdG9zLzA3NmVmMTJjLTg1ZmYtNGVkZS1hMjZhLWY2NjQ1MWM4NmViMy9sYXJnZS9tYXBsZWxlYWZsb3VuZ2UtMTItMTIzMi5qcGVn",
"url": "aHR0cHM6Ly91cGFtZWRpYS5hdHBjby5uZXQvcGhvdG9zLzA3NmVmMTJjLTg1ZmYtNGVkZS1hMjZhLWY2NjQ1MWM4NmViMy9tYXBsZWxlYWZsb3VuZ2UtMTItMTIzMi5qcGVn",
"caption": "VGhlIG5ldyBBZXJvcGxhbiBsb3lhbHR5IHByb2dyYW0gaXMgYnVpbHQgYXJvdW5kIHRoZSB3YXkgeW91IHRyYXZlbC4gQm9vayBmbGlnaHRzLCB1cGdyYWRlIHlvdXIgc2VhdCBhbmQgcGF5IGZvciBvbmJvYXJkIFdpLUZpIHdpdGggcG9pbnRzLg=="
},
{
"id": 2,
"thumbUrl": "aHR0cHM6Ly91cGFtZWRpYS5hdHBjby5uZXQvcGhvdG9zL2YxMTFlMWY5LTUzYTktNGUyNi1iMGRmLWQ2ZTQ0MzJjMjRmMi9zcXVhcmVfdGh1bWIvQTMyWF9DYWJpbl9VUEFfTEguanBn",
"mediumSquareUrl": "aHR0cHM6Ly91cGFtZWRpYS5hdHBjby5uZXQvcGhvdG9zL2YxMTFlMWY5LTUzYTktNGUyNi1iMGRmLWQ2ZTQ0MzJjMjRmMi9sYXJnZV9zcXVhcmVfdGh1bWIvQTMyWF9DYWJpbl9VUEFfTEguanBn",
"largeUrl": "aHR0cHM6Ly91cGFtZWRpYS5hdHBjby5uZXQvcGhvdG9zL2YxMTFlMWY5LTUzYTktNGUyNi1iMGRmLWQ2ZTQ0MzJjMjRmMi9sYXJnZS9BMzJYX0NhYmluX1VQQV9MSC5qcGc=",
"url": "aHR0cHM6Ly91cGFtZWRpYS5hdHBjby5uZXQvcGhvdG9zL2YxMTFlMWY5LTUzYTktNGUyNi1iMGRmLWQ2ZTQ0MzJjMjRmMi9BMzJYX0NhYmluX1VQQV9MSC5qcGc=",
"caption": "RW5qb3kgb3VyIEx1ZnRoYW5zYSBob3NwaXRhbGl0eSBhbmQgYXJyaXZlIHJlbGF4ZWQgYXQgeW91ciBkZXN0aW5hdGlvbi4="
}
]
}
To answer your question.
You would need to target the elements using its array index.
Array indexes start at zero, so for example.
console.log(response.upaPhotoDescs[0].thumbUrl); // 1st record
console.log(response.upaPhotoDescs[1].thumbUrl); // 2nd record
// etc
If there is more than one object and to prevent you having to hardcode the indexes, then will have to loop through the array.
As I don’t know what you want to do with this, the following is just an example that goes through the array and replaces the elements.
const response = pm.response.json();
var atob = require('atob');
response.upaPhotoDescs.forEach(obj => {
obj.thumbUrl = atob(obj.thumbUrl)
obj.mediumSquareUrl = atob(obj.mediumSquareUrl);
obj.largeUrl = atob(obj.largeUrl);
obj.url = atob(obj.url);
obj.caption = atob(obj.caption);
});
console.log(response);
From here, you can then console.log the response which will now have its string representation.