Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How ignore a attribute to be serialize/deserialize ? #26

Open
hug-dsi opened this issue May 31, 2017 · 1 comment
Open

How ignore a attribute to be serialize/deserialize ? #26

hug-dsi opened this issue May 31, 2017 · 1 comment

Comments

@hug-dsi
Copy link

hug-dsi commented May 31, 2017

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 ?

@appienvanveen
Copy link

Would be cool if this could be added. I'm trying to keep my functions for my class, but they get overriden since they are not in the JSON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants