Unflattening view data to JSON with Mule DataMapper
问题 I've got a database view that I need to send to a Web API call in JSON format, but I'm having a hard time figuring out how to get the datamapper to un-flatten the data. The format I want to get to is something like: { "PersonId": "12345" , "CommonProp": "asdf" , "DataForPerson": [ { "Prop1": "prop 1 value A", "Prop2": "prop 2 value A" } , { "Prop1": "prop 1 value B", "Prop2": "prop 2 value B" } ] } The format coming in from the view is something like: PersonId CommonProp Prop1 Prop2 12345