Skip to content

[Question/Feat Request]Mapping multiple JSON properties to one object property #39

@Payetus

Description

@Payetus

Mapping multiple JSON properties to one object property

For example I have the following JSON object:
obj = { id: '002', date: '05/07/1991', time:'22:35'
And I want to map it to the following class :
class Example { @JsonProperty() id = ''; datetime: Date = new Date(); }
I want to concatenate date and time to datetime. Ho would I go about acomplishing this?

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