json-object-mapper icon indicating copy to clipboard operation
json-object-mapper copied to clipboard

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

Open Payetus opened this issue 6 years ago • 0 comments

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?

Payetus avatar Mar 20 '19 17:03 Payetus