This is dangerous. If msg is a dict, you wind up with `{"body": {"key": "value"}}`, which will yield an invalid request response or worse, a silent failure. Let's JSON encode the body for them. We need `{"body": "{\"key\": \"value\"}"}`.