Hi Devs,

I need to do a custom json mapping for a payload like following.

{
   "sensorMessages":[
     {
         "sensorID":"10001"
     },
     {
         "sensorID":"10002"
     },
   ]
}

I have defined a custom event mapping on the event reciever as ,

<property>
   <from jsonPath="$.sensorMessages[*].sensorID"/>
   <to name="sensorID" type="string"/>
</property>

>From this I get an array of sensor Ids for the sensorID field (i.e
["10001","10002"]). Is there a way to create separate sensor ID entries for
this kind of payload?


Thanks & Regards,
-- 
Sameera Gunarathne
Software Engineer, WSO2 Inc. http://wso2.com
<http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com&h=gAQEswASa>
Email: [email protected]
Mobile: +94714155561
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to