If you have a body like this:
payload={"data": "5 %"}
Then nginx will most likely give you a 400 bad request error.
To get around this, encode the json with "x-www-urlencoded" encoding.
A web framework like rails will transparently decode "x-www-urlencoded" for you.