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?
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?