From 23c62de2a03545875089662cb28ae88b816949ba Mon Sep 17 00:00:00 2001 From: Basem Nayfeh Date: Wed, 6 Nov 2024 18:52:08 -0800 Subject: [PATCH] Added INDENT_OUTPUT --- .../community/web/search/searxng/SearXNGClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-search-engines/langchain4j-community-web-search-engine-searxng/src/main/java/dev/langchain4j/community/web/search/searxng/SearXNGClient.java b/web-search-engines/langchain4j-community-web-search-engine-searxng/src/main/java/dev/langchain4j/community/web/search/searxng/SearXNGClient.java index 11ec6f5..bf6b8ac 100644 --- a/web-search-engines/langchain4j-community-web-search-engine-searxng/src/main/java/dev/langchain4j/community/web/search/searxng/SearXNGClient.java +++ b/web-search-engines/langchain4j-community-web-search-engine-searxng/src/main/java/dev/langchain4j/community/web/search/searxng/SearXNGClient.java @@ -12,9 +12,10 @@ import retrofit2.Response; import retrofit2.Retrofit; import retrofit2.converter.jackson.JacksonConverterFactory; +import static com.fasterxml.jackson.databind.SerializationFeature.INDENT_OUTPUT; class SearXNGClient { - private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); + private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper().enable(INDENT_OUTPUT); private SearXNGApi api; public SearXNGClient(String baseUrl, Duration timeout) {