This isn’t actually a JSON parsing error – it indicates that the Jetty server cut off the request, which led to failure to parse JSON.

The cause of this is that you need to use chunked encoding in the request payload. If you’re using Node, a lot of examples have you set Content-Length in the post, which implicitly disables chunked encoding: