4 Replies Latest reply on Apr 28, 2016 11:07 PM by Raman kalra

    Replace JSON node name through Camel transformation

    Raman kalra Newbie

      Hi All,

       

      I have an input Json String which is consumed by rest Binding in Switchyard Project .My Json string is something like one given below

       

        {"idNumber":"539",

        "serviceInstancenumber":175497544,

        "Code":"SERVICE",

        "Ids":[],

        "clientId":"3",

        "service":[]

        }

       

      Now I have a requirement to map the Json node names to some other attribute name e.g idNumber -> InstanceNumber , serviceInstancenumber -> ServiceNumber.

      This mapping has to be done during runtime . So is there any way through which I can achieve this in Switchyard Project  . I have read about Camel transformation but not sure if I can use it . Thanks in advance !!

       

      Regards,

      Ramandeep