Skip to content

[BUG] JSONWriter.Feature.IgnoreNoneSerializable对rootObject不生效 #477

@wenshao

Description

@wenshao

JSONWriter.Feature.IgnoreNoneSerializable在2.0.7版本中,只对字段生效了,对rootObject不生效,也对Map中的Value不生效。

比如:

static class Bean2 {
}

Bean2 bean = new Bean2();
assertEquals("null", JSONB.toJSONString(
                JSONB.toBytes(bean, JSONWriter.Feature.IgnoreNoneSerializable)
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions