Hi Tharik,
General practice for this has been to take the whole array from the user.
Please see [1] (Quickbooks connector)
Thanks.
[1] http://goo.gl/9cgx2S
On Wed, Sep 10, 2014 at 10:35 AM, Tharik Kanaka [via WSO2 Oxygen Tank] <
ml-node+s10903n10263...@n7.nabble.com> wrote:
> Hi all,
>
> At the moment myself and pumudu ([hidden email]
> <http://user/SendEmail.jtp?type=node&node=102632&i=0>) are developing
> wso2 esb connector for codeplex. It has an operation to create subscription
> where we need to send json array like below.
>
> {
> "Events": [
> {
> "Name": "Code Change",
> "Enabled": true,
> "Properties": [
> {
> "Name": "summary",
> "Value": "True"
> }
> ]
> }
> ],
> "Properties": [
> {
> "Name": "url",
> "Value": "http://test.com"
> }
> ]
>
> }
>
> In that case what would be the best approach to handle json array?
>
> 01. get whole json array as a parameter from user
> 02. get properties as parameters from user and create json array inside
> connector.
>
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Mobile: +94 77 1616060 | Work: +94 112145345
>
> Email: [hidden email]
> <http://user/SendEmail.jtp?type=node&node=102632&i=1> | Web: www.wso2.com
>
> _______________________________________________
> Dev mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=102632&i=2>
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://wso2-oxygen-tank.10903.n7.nabble.com/Best-approach-to-send-json-array-from-ESB-Connector-tp102632.html
> To start a new topic under WSO2 Development, email
> ml-node+s10903n3...@n7.nabble.com
> To unsubscribe from WSO2 Development, click here
> <http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3&code=cmFzYWRlODhAZ21haWwuY29tfDN8LTEwNDAzODU2MTk=>
> .
> NAML
> <http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
Au revoir!
Ramindu Deshapriya.
Member - Sahana Software Foundation http://sahanafoundation.org
http://rdeshapriya.com
<http://www.facebook.com/rdeshapriya> <http://twitter.com/#%21/rami_desh>
<https://plus.google.com/113801459480978566130>
<http://www.linkedin.com/profile/view?id=84017607&trk=tab_pro>
<http://rdeshapriya.com> <http://lmakuthan.blogspot.com>
--
View this message in context:
http://wso2-oxygen-tank.10903.n7.nabble.com/Best-approach-to-send-json-array-from-ESB-Connector-tp102632p102649.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev