%dw 2.0
import * from dw::util::Tree
output application/json
---
{
   a: {name: "Mariano", lastName: null, age: 123, friends: [{name @(mail: "mariano.achaval@gmail.com", test:123 ): "", id:"test"}, {name: "Mariano", id:null}]} filterObjectLeafs ((value, path) -> !(value is Null or value is String)),
   b: null filterObjectLeafs ((value, path) -> !(value is Null or value is String))
}