wankdanker / node-object-mapper

Copy properties from one object to another.
MIT License
277 stars 73 forks source link

Map list of content #23

Open akudahewa opened 8 years ago

akudahewa commented 8 years ago

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