added support for different content type in JSONHttpEntity