node-object-mapper
node-object-mapper copied to clipboard
Map list of content
ex: no of sub elements inside offers is dynamic.It may be 2,3,4 or whatever amount. In example i put 2 elements
si json .. "offers": [ { "price": 99, "format":'USD' }, { "price":199, "format":'USD' } ] ..
after map i want like below ... "offers": [ { "price": 99 }, { "price":199 } ] ...
I did like below
var map={
But that does not work.Is there any way to do