class MetricJsonObjectDeserializer extends JsonDeserializer<JsonObject>{

        @Override
        public JsonObject deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {<FILL_FUNCTION_BODY>}
    }

            ObjectCodec oc = jp.getCodec();
            JsonNode node = oc.readTree(jp);

            JsonObject metric = new JsonObject();
            node.fields().forEachRemaining(entry -> metric.addProperty(entry.getKey(), entry.getValue().asText()));

            return metric;
        
<no_super_class>