If there are many and you are sending a JSON body, the best thing will be to use Create a JSON module instead, which will handle all the escaping required, without you needing to use replace function for each one of them.
I am not exactly sure on the use-case of what you have mentioned, it it is the limitation on the API vendor not supporting such characters then using replace as suggested in the previous answer is the only option.
But Using Create a JSON module if applicable for you will be the best thing to do.
I’m sorry but this was not the problem, I already fix it before generating but paste the wrong JSON in here.
Do you know any example to create json out of json? Because I already mapped like 96 columns in JSON and I dont want to was my time with mapping in Array Aggregator again.
If you want to use the Parse JSON module, the best way to do this will be to create a data structure as the JSON that you have shared have a fixed structure from the looks of it, so you can either generate a new one or create a new structure. For the escaping to work, You will need to utilize the Data Structure.
Curious to find out if someone can help us out and share a better solution!
This last attempt is a bit hacked together, assuming that none of the column names in Monday or replacement values will contain a pipe char “|”. If so, you can replace the char with something else you never expect. So this could work, until it breaks if the value does appear in the replacement values