I'm new to coding in Wix. I am using a dynamic page with portrait and landscape images. As the image placeholder is not dynamic and can only be either portrait or lanscape (therefore always cropping the other orientation), I am trying to implement the approach described her: https://www.wix.com/code/reference/wix-router.html#afterRouter.
All is in place. However, I see that response.data.picture.orientation is not a know property.
So, I wanted to approach it by parsing the response.data for the pixel size. However, the response.data seems inconsistently formatted. Some of the tokens are enclosed in apostrophes other not, for example items or _id right at the beginning. It's type of a misformed JSON. Is this by design or is something going wrong here? How can I drill down to the element containing the picture dimensions (1203_1620)?
If you now ask me for console.log, can somebody tell me how I can capture console.log output? I cannot copy it from the browser window :-( That's why I have attached it as a screenshot.
Thanks for any assistance...