Retrieving Json data

Hi Newbie here

Im trying to get the bay 2170422222 from the json response below any help would be greatly appreciated

{
“Content”: {
“2021-02-22”: {
“area1”: [
{
“TimeSlot”: 1,
“AppointmentLength”: 0,
“Bay”: 2170422222
},

@marcozani Welcome to the community :partying_face:

We totally get your situation. Once you learn about JSON parsing should be easier.

I see that you response in incomplete.

Wild guess would be:

 var jsonData = pm.response.json();
console.log( jsonData.Content.area1[0].Bay);
pm.globals.set("bay", jsonData.Content.area1[0].Bay);

Try this tool, until you are familiarize with JSON and arrays. I wrote a blog, read if you are interested :blush: