i have tried response = pm.response.json().data but it doesnβt appear anything.
when i try pm.response.json().data.occupation or profile, it only shows 1 tag.
Could anyone give me an advice
thank you very much
As long as there is a single data object, then this is fairly straight forward to visualize.
My recommendation is to create an object with just the data you want to visualize (to prevent you having to cater for this in the Visualizer template).
Did you use the initial part of the code that I produced that gets the four values from the response which you then use in the Vizualiser.
If you console log that object when its created, what is it showing?
It should be a flat object, which means there is no need for a loop. The reason your first attempt was showing on four separate lines is because of the loop.
When you say sequentially. What do you mean. Can you please elaborate?
Is your original post, you have a single data object, with the data you require under the profile and occupation keys.
Does it actually return a single object, or is it returning multiple object\records? Which is where you would use the #each response method.
Itβs showing [object object], as for some reason its targeting an object with multiple key\values instead of the individual keys.
Can you please show all of the code you now have, and a screenshot of the actual response if possible.