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.

<property name="full_outseq_resp" expression="json-eval($)" />


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 <shafr...@wso2.com> wrote:

> 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 see [1].
>
> <bar>
> <?xml-multiple array?>
> <foo>
> </bar>
>
> [1] https://docs.wso2.com/display/ESB480/JSON+Support
> <https://www.google.com/url?q=https%3A%2F%2Fdocs.wso2.com%2Fdisplay%2FESB480%2FJSON%2BSupport&sa=D&sntz=1&usg=AFQjCNGzk2n5B0bZhZdSndzB-lDEKp0BPA>
>
>
> On Tue, May 24, 2016 at 5:17 PM, Godwin Shrimal <god...@wso2.com> wrote:
>
>> Hi Shafreen,
>>
>> Yes. This is JSON array.
>>
>>
>> Thanks
>> Godwin
>>
>>
>> On Tue, May 24, 2016 at 6:22 AM, Shafreen Anfar <shafr...@wso2.com>
>> wrote:
>>
>>> Hi Godwin,
>>>
>>> On Mon, May 23, 2016 at 9:05 PM, Godwin Shrimal <god...@wso2.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I used Enrich Mediator to copy the original payload as follows.
>>>>
>>>> <enrich>
>>>>
>>>>     <source clone="true" type="body"/>
>>>>
>>>>     <target property="ORIGINAL_PAYLOAD" type="property"/>
>>>>
>>>> </enrich>
>>>>
>>>> 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 any work
>>>> around for this ?
>>>>
>>>
>>> When you say multi-value attribute do you mean json arrays ?
>>>
>>>
>>>>
>>>>
>>>> Thanks
>>>> Godwin
>>>>
>>>>
>>>>
>>>> --
>>>> *Godwin Amila Shrimal*
>>>> Senior Software Engineer
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: *+94772264165*
>>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>>> twitter: https://twitter.com/godwinamila
>>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>> *Shafreen*
>>> Software Engineer
>>> WSO2 Inc
>>> Mobile : 077-556-395-1
>>>
>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
> Regards,
> *Shafreen*
> Software Engineer
> WSO2 Inc
> Mobile : 077-556-395-1
>



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
twitter: https://twitter.com/godwinamila
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to