de Serialize
  Deserialize a kotlinx.serialization JsonObject.
The value parameter is a JsonObject because the Elasticsearch/Opensearch response has already been parsed using kotlinx.serialization. Passing the JsonObject avoids converting back and forth between string and JSON, while still allowing frameworks like Jackson to re-parse it if needed.
For this, you can use value.serializedToString to serialize value back or call Json.encodeToString(value) directly.