I’d like to make a client http call providing JSON RequestEntity with some serialized java object
I assume that doing this serialization explicitly in a blocking way is not the best option, is it?
ObjectMapper om = ...; HttpRequest.create() .withMethod(POST) .withUri(...) .withEntity(HttpEntities.create(APPLICATION_JSON, om.writeValueAsString(obj)));
So I wonder what is the recommended way of doing this?
Can Materializer be used somehow?