support sending objects with application/json content type