@Override
    public void serializeToBody(Context ctx, Object data) throws IOException {
        // If not set, use default // such as ndjson,sse or deliberately change mime (can be controlled externally)
        if (ctx.contentTypeNew() == null) {
            ctx.contentType(this.mimeType());
        }

        if (data instanceof ModelAndView) {
            ctx.output(serialize(((ModelAndView) data).model()));
        } else {
            ctx.output(serialize(data));
        }
    }
Serialize the body

@param ctx Handling context
@param data data
extension-solon/src/main/java/com/alibaba/fastjson2/support/solon/Fastjson2StringSerializer.java