AnsweredAssumed Answered

Mapping non-group fields into Group fields using Field mapper

Question asked by ahsan_02 on Sep 30, 2016
Latest reply on Apr 13, 2018 by deleted-user-GKyg-xriCvci

I have received json as input on a tcp socket, and created a GeoEvent service that sends it into  json file in output folder. The input json has no group field but i want to send output having a group field. I tried to bind it using Field Mapper but it did not work. I have created a separate definition having group field that i want as output. How can i convert my non-group json input to group output json. 

 

Input JSON :          

 

{

   "id" : "R1",

   "lat" : 73.0001,

   "long" : 33.0014

}

 

Output JSON:

 

{

      "data" : {

        "id" : "R1",

         "lat" : 73.0001,

         "long" : 33.0014

   }

}

Outcomes