Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

AfterFilter附加对象时$ref引用出现null属性名($ref: "$.data[0].null") #3150

@supenBenny

Description

@supenBenny

category:是通过AfterFilter加入的
category2:对象本身定义的属性

image

serializer.writeKeyValue(seperator, key, value);

  protected final void writeKeyValue(char seperator, String key, Object value) {
        if (seperator != '\0') {
            out.write(seperator);
        }
        out.writeFieldName(key);
        write(value);
    }

JSONSerializer.write 方法未传递fieldName,此处可以改为writeWithFieldName

image

最终JSONSerializer.setContext 时fieldName为空。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions