Solved!!! Apparently the line continuation backslash is the problem.

I supposed if I used some json library I wouldn't have this problem, but it was a simple POST so I didn't bother.