@Test
    public void igoreTest() throws Throwable {
        ClassPool pool = ClassPool.getDefault();
        CtClass clazz = pool.makeClass("a");
        CtConstructor constructor = new CtConstructor(new CtClass[]{}, clazz);
        clazz.addConstructor(constructor);

        JSONArray jsonArray = new JSONArray();
        jsonArray.add(clazz);
        String str = jsonArray.toString();
        assertEquals("[{}]", str);
    }
note

@author kon, created on 2022/4/27T11:04.
@version 1.0.0-SNAPSHOT
core/src/test/java/com/alibaba/fastjson2/util/BeanUtilsTest.java