pipe the json encoder to the http request for zero copy encoding