I am using a Quarkus application which have a dependent client service which pass me the response as a Uni object type
Uni<Response> response = clinetService.someMethod(id);
Now I need to pass this response to a another client cache service as a String:
cacheService(id, mapObj, responseObjectAsAString);
So I need to pass this converted String value to the above method.
I tried multiple ways to serialize/convert it into a String using ObjectMapper writeValueAsString(obj) method or Gson class .toJson(obj), but nothing worked.
Any suggestion will be very helpful.
Response? And what isclinetService?