Parse Json Data To View As An Image In Chrome Extension
I have images and texts as json data. 'imageCollection': { 'Name': 'Anna', 'imageUrl':'https://xxx/xxx/img.jpg?t=5657565', }, I used this approach to parse json data into image b
Solution 1:
Try using src property of image
document.getElementById("IMAGE_TAG_ID").src = jsonData.imageCollection.imageUrl;
replace IMAGE_TAG_ID to your image tag id.
Post a Comment for "Parse Json Data To View As An Image In Chrome Extension"