I am new to Make.com and trying my hand in automation.
My basic need is to convert JSON Array to JSON and post it to a Google Doc.
I have figured out way to extract JSON array and iterate through it but the problem is I am not able to create the JSON out of it.
Here is my input-
“openingHours”: [
{
“day”: “Monday”,
“hours”: “11:30 AM to 11:30 PM”
},
{
“day”: “Tuesday”,
“hours”: “11:30 AM to 11:30 PM”
},
{
“day”: “Wednesday”,
“hours”: “11:30 AM to 11:30 PM”
},
{
“day”: “Thursday”,
“hours”: “11:30 AM to 11:30 PM”
},
{
“day”: “Friday”,
“hours”: “11:30 AM to 11:30 PM”
},
{
“day”: “Saturday”,
“hours”: “11:30 AM to 11:30 PM”
},
{
“day”: “Sunday”,
“hours”: “11:30 AM to 11:30 PM”
}
],
And I need output like this-
{
“Sunday”: “11:30 AM to 11:30 PM”,
“Monday”: “11:30 AM to 11:30 PM”,
“Tuesday”: “11:30 AM to 11:30 PM”,
“Wednesday”: “11:30 AM to 11:30 PM”,
“Thursday”: “11:30 AM to 11:30 PM”,
“Friday”: “11:30 AM to 11:30 PM”,
“Saturday”: “11:30 AM to 11:30 PM”
}
The order of the JSON items don’t really matter.
Any help will be much appreciated.
This is my scenario: