@SuppressWarnings("unchecked")
    private void serializeInternal(T value, JsonGenerator gen, SerializerProvider serializers)
        throws IOException {
      gen.writeStartArray();
      gen.writeString(value.getClass().getCanonicalName());
      defaultSerializer.serialize(value, gen, serializers);
      gen.writeEndArray();
    }
Custom array serializer.
Serializes the array type information as a JSON array ("[]") into the buffer and delegates to
the default serializer afterwards. Eventually the serialization mechanism will end up invoking
ContextAwareBeanSerializer, which won't serialize the type information for every single
element within the array.
geode-core/src/main/java/org/apache/geode/management/internal/json/QueryResultFormatter.java