Set content_type to JSON.

This was required in order to post JSON, however
the dict syntax doesn't decode properly.