Re: [Dev] ESB Enrich Mediator Issue with JSON array

2016-05-26 Thread Godwin Shrimal
Hi Shafreen, Solve the issue by copying the payload using following. But I think there is a issue in the JSON Builder as i discussed you. Thanks Vijitha and Jagath for helping me to sort out this issue. Thanks Godwin On Tue, May 24, 2016 at 6:56 AM, Shafreen Anfar

Re: [Dev] ESB Enrich Mediator Issue with JSON array

2016-05-24 Thread Shafreen Anfar
Hi Godwin, In that case, we have a problem. So usually what we do is adding the below xml instruction just before the element that has to be represented as an array. For instance let's say you have an element name foo and want to represent that as an array. You can do the following. For more info

Re: [Dev] ESB Enrich Mediator Issue with JSON array

2016-05-24 Thread Godwin Shrimal
Hi Shafreen, Yes. This is JSON array. Thanks Godwin On Tue, May 24, 2016 at 6:22 AM, Shafreen Anfar wrote: > Hi Godwin, > > On Mon, May 23, 2016 at 9:05 PM, Godwin Shrimal wrote: > >> Hi All, >> >> I used Enrich Mediator to copy the original payload as

Re: [Dev] ESB Enrich Mediator Issue with JSON array

2016-05-24 Thread Shafreen Anfar
Hi Godwin, On Mon, May 23, 2016 at 9:05 PM, Godwin Shrimal wrote: > Hi All, > > I used Enrich Mediator to copy the original payload as follows. > > > > > > > > > > Incoming JSON payload has multi-value attribute, But when multi-value > attribute has only one value,

[Dev] ESB Enrich Mediator Issue with JSON array

2016-05-23 Thread Godwin Shrimal
Hi All, I used Enrich Mediator to copy the original payload as follows. Incoming JSON payload has multi-value attribute, But when multi-value attribute has only one value, Enrich mediator convert the JSON payload it as a single value attribute. Is this a known issue or do we have