Skip to content

Create flag that allows only one-way conversion (serialization or deserialization) #204

@andreas-aeschlimann

Description

@andreas-aeschlimann

It would be nice if there was a flag for a property that decides whether it should only be serialized or deserialized.

For example, you could have

    @JsonProperty("a", Number)
    a: number = 0;

    @JsonProperty("a", Number)
    b: number = 0;

Now you want deserialize the JSON property a to both class properties a and b, but when serializing you only want to use the class property a.

As of now, in that case there is a collision and b will override a.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions