JSON parsing error due to special characters in input.DATA

input.data with special characters like ", {' including many other break json format and cause parsing error in post request. If there is option to add backslash to all such special character by default then it will not casue that error.

So like URL Encode I am looking for any API or BLOCK to JSON Encode data.

You can just use a translate block to escape them, there are only 3 characters you need to escape anyways ({, } and ") so map them to \{, \} and \" respectively.

Like:

{: \{
}: \}
": \"

Should work

2 Likes

Sorry for my research, { and } doesn’t cause any parsing error.