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

Map list of content

Open akudahewa opened this issue 9 years ago • 0 comments

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={ .offers[].price": ".offers.[].price" }

But that does not work.Is there any way to do

akudahewa avatar Jan 14 '16 10:01 akudahewa