I’m trying my best to create a json type of formatting on a bundle of strings so I can send it directly into a request for another soft.
Every time a new contrat is created, business days and hours are sent as a true/false output, with hours attached. I managed to clean up the output so it looks like what my request wants. But I can’t for the life of me figure out how to flattend everything into a nice string, separating each item by a comma.
This way it prevents any empty brackets from messing up my request. I did the same in case the customer was closed on Friday, tweaking syntax a little bit so there wouldn’t be any trailing commas.