8000 How ignore a attribute to be serialize/deserialize ? · Issue #26 · jf3096/json-typescript-mapper · GitHub
[go: up one dir, main page]

Skip to content
How ignore a attribute to be serialize/deserialize ? #26
@hug-dsi

Description

@hug-dsi

Is there a @JsonIgnore like in Jackson java api ?
because we don't want to serialize/deserialize some attribute of a TS Class
`
export class Patient {
firstname: string = void 0;
id: string = void 0;
lastname: string = void 0;
sex: string = void 0;

@JsonProperty({ clazz: TEST })
test: TEST[] = void 0;

// @JsonIgnore we don't want to serialize this
oneProperty: string = void 0;
}
`

How to specify a default value when deserialize make a attribute value equals to undefined or null ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0