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

Computed Properties in mapper

Open pravin-d opened this issue 5 years ago • 0 comments

Is it possible to have a computed property or maybe multiple names/alias as part of the json mapper ? Eg. Transformation

[{"id" : "someId"}, {"_id" : "sdfdf"}] => [{"id" : "someId"}, {"id" : "sdfdf"}]

Above I have 2 objects one with id and another with _id want to map both to id in the resulting object Also the cases file fullname = firstName + secondName

pravin-d avatar Sep 02 '20 14:09 pravin-d