Re: [Dev] Getting null values when converting nested json objects into x-www-form-urlencoded format

2016-11-07 Thread Keerthika Mahendralingam
Created a JIRA ticket for this.

[1]. https://wso2.org/jira/browse/ESBJAVA-4947

Thanks.

On Thu, Sep 22, 2016 at 10:54 AM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi All,
>
> I am trying to convert json payload which have nested json objects into
> x-www-form-urlencoded format. Nested element values are converted to null
> when performing the transformation.
>
> I am using the following configuration with ESB 4.9.0 and 5.0.0 as well:
>
> 
> http://ws.apache.org/ns/synapse;
>name="testProxy"
>transports="https,http"
>statistics="disable"
>trace="disable"
>startOnLoad="true">
>
>   
>  
> {
>
> "name":"user1",
>
> "address":{"line1":"street1"},
>
> "age":12
>
> }
>
>
>
> 
>  
>  value="application/x-www-form-urlencoded"
>scope="axis2"
>type="STRING"/>
>  
>   
>
>
> 
>
> The output is :
> name=user1==12
>
> But it should be:
> name=user1[line1]=street1=12
>
> Is there any way to achieve this?
>
> Thanks,
> Keerthika.
> --
> 
> Keerthika Mahendralingam
> Software Engineer
> Mobile :+94 (0) 776 121144
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 

Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Getting null values when converting nested json objects into x-www-form-urlencoded format

2016-09-21 Thread Keerthika Mahendralingam
Hi All,

I am trying to convert json payload which have nested json objects into
x-www-form-urlencoded format. Nested element values are converted to null
when performing the transformation.

I am using the following configuration with ESB 4.9.0 and 5.0.0 as well:


http://ws.apache.org/ns/synapse;
   name="testProxy"
   transports="https,http"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   
  
 
{

"name":"user1",

"address":{"line1":"street1"},

"age":12

}

   


 
 
 
  
   
   


The output is :
name=user1==12

But it should be:
name=user1[line1]=street1=12

Is there any way to achieve this?

Thanks,
Keerthika.
-- 

Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev