Executing cURL from the terminal removes backslashes and passes the escaped characters in the resulting string. As a result, if you want to pass \" to the server you need to include \\\". I ran these examples from the command line on my MacOS machine.

Some Windows terminals don’t like single quotes, so you may need to replace them with " if you’re running these examples on a windows machine.