Enter character problem at the end of the line

Resolved

I am sending a long text via API - POST . If a new line is created by pressing ENTER at the end of a line for the created text line, I get an error:

"Invalid payload. Unexpected token\n in JSON at position 28"

If this is not present at the end of the line, POST API results without errors. How to fix?

1
3 replies