Force "object"-form when posting json

When POSTing with no/empty content, we should send `{}` instead of `[]`, otherwise Github doesn't like it:
```
Github\Exception\ErrorException (400): Body should be a JSON Hash
```